Kursy
Zaloguj sięZacznij uczyć się AI
Kursy
Zaloguj sięZacznij uczyć się AI
+ 2

Help me!

a = 1.23466 so how to print to the screen value of a is 1.23

java
12th Feb 2017, 11:35 AM
School Dog
1 Odpowiedź
+ 4
System.out.printf ("The value of a is %.2f", a); This should do what you want.
12th Feb 2017, 12:48 PM
Adam

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Can you give me some advice on what project I can start with today to practice HTML, CSS, and JavaScript?
0 Votes
I've a HTML code question
0 Votes
Appointment Booking website
0 Votes
C++
0 Votes
Offline AI Model with Fast Voice Chat
0 Votes
Building an AI Call Tracking & Routing System — Anyone tried it?
0 Votes
Give me advice
1 Votes
I am asking for your help, I need to optimisate my code.
0 Votes
Does anyone know how to go to another "page" on the same page using the HTML button tag?
1 Votes
Mentors
1 Votes