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

Started by Lord Of The D 42 on

Topic category: Help with MCreator software

Active 6 months ago
Joined Nov 2021
Points:
454

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
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
Active 2 years ago
Joined Jul 2020
Points:
638

User statistics:

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

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

##.#### to 5.3333 ect

Active 1 year ago
Joined Jul 2018
Points:
744

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 89
##.## 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!

Active 6 months ago
Joined Nov 2021
Points:
454

User statistics:

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

How do you put text in front/behind it?

Active 1 year ago
Joined Jul 2018
Points:
744

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 89
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. 

Active 2 years ago
Joined Mar 2022
Points:
370

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 65
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.

Active 9 months ago
Joined Nov 2023
Points:
417

User statistics:

  • Modifications: 0
  • Forum topics: 36
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 344
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?