Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I don't know what happen but when I use array C2 say:
0.05 + 0.01 = 0.060000000000000005
That's the problem with floating point numbers...
Develop games in your browser. Powerful, performant & highly capable.
And is there any easy solution?
Stick with integers and divide by 100 only when you need to get the value as a decimal.
most certainly not the best way...but
Like blackhornet said, work with integers:
Thanks for all your comments.
I decide to use the *100 /100 solution, but adding a round().
With this I can use the array and I don't need to worry every time to add a /100