Clickteam Fusion 2.5

Clickteam Fusion 2.5

Squatter 2 May, 2016 @ 3:47pm
Having Decimal Issues again
How can I force x amount of decimal places?

I want 360/10 to equal 36.000

I tried using 360/10.0 but I get 36

How can I force 3 decimal places?
Last edited by Squatter; 2 May, 2016 @ 3:48pm
< >
Showing 1-1 of 1 comments
Squatter 2 May, 2016 @ 4:06pm 
So I am playing with FloatToString to get it to work

but I dont understand what the 2nd Integer is used for

Convert Float to String: This function is a fleshed out version of the Str$() function for
decimal numbers. It allows you to choose how many digits are shown and how many digits
after the decimal are shown.
Returns a string
Format: FloatToString$(<number>,<integer>,<integer>)

FloatToString$(360/10.0 , 0 , 2) = 36.00

FloatToString$(360/10.0 , 2 , 2) = 36.00

Not sure what that 2nd variable does, the end result is the same no matter what I change that variable too. I know it says how many digits are shown, but it doesnt seem to have an effect.

Anyone have a better solution so I dont have to play with strings?
Last edited by Squatter; 2 May, 2016 @ 4:17pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: 2 May, 2016 @ 3:47pm
Posts: 1