Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: KonstantinSmirnov on October 05, 2017, 10:05:40 PM

Title: how to rounding a float [SOLVED]
Post by: KonstantinSmirnov on October 05, 2017, 10:05:40 PM
Hello!
I'm a beginner, have a some problem: when i'm adding a 0.1 float, sometimes Unity shows like 0.800000001. How to receive it to 0.8 always? Thank you!

p.s. sorry for my English
Title: Re: how to rounding a float
Post by: djaydino on October 05, 2017, 10:41:50 PM
Hi,
You can find some action for that on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

a few i can see are :

Float Round
Float Round To Nearest
Float Decimal Count
Title: Re: how to rounding a float
Post by: KonstantinSmirnov on October 06, 2017, 11:48:26 AM
Thank you! Its work amazing!!!!! I using float round to nearest.