How do you format the 'Format number as "##.##"' block? [SOLVED]

Started by Lord Of The D 42 on

Topic category: Help with MCreator software

Last seen on 12:42, 28. May 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you format the 'Format number as "##.##"' block? [SOLVED]
Sat, 05/14/2022 - 16:10 (edited)

more specifically the "##.##" part. I want to know how that's formatted

Edited by Lord Of The D 42 on Sat, 05/14/2022 - 16:10
Last seen on 17:58, 6. Feb 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
##. ## means 5…
Thu, 01/20/2022 - 13:27

##. ## means 5.33333333333333 will be changed to 5.33

##.#### to 5.3333 ect

Last seen on 17:21, 27. Apr 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
##.## is decimal number…
Thu, 01/20/2022 - 13:54

##.## is decimal number/float, where number of # after the . means how many decimal numbers you want to keep. If you formate it just like ## , you get whole number/integer without decimals.

So be careful when you compare two numbers in text, they have to be formatted equally!

Last seen on 12:42, 28. May 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you put text in front…
Fri, 01/21/2022 - 03:32

How do you put text in front/behind it?

Last seen on 17:21, 27. Apr 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In "Text procedure blocks"…
Fri, 01/21/2022 - 07:49

In "Text procedure blocks" there is a block "create text with". You just connect a text or a formatted number in the order you want to have the final text. 

Last seen on 05:05, 30. Oct 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You don't even need to do…
Sun, 05/22/2022 - 20:23

You don't even need to do that.  You can just add text before or after the ##.## and it will display fine.

Last seen on 04:46, 14. Mar 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what about to display time?…
Tue, 12/12/2023 - 03:10

what about to display time? like 16:30 h ? is there one for it?