Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Integers and Floats

Author
Message
programming is ace
User Banned
Posted: 18th Apr 2017 23:50
Argh. Here is what Integers and Floats do for us.

I have got and integer set at 1 and a float set at 1

Integer set at 1 = ....1....1....1....1....1....1....1
Float set at 1 = ....1....1....1....1....1....1....1

ok set the floater to halve 0.50 = .1.1.1.1.1.1.1.1.1.1.1.1.1.1

set to halve again, 0.25 = 1.1.1.1.1.1.1.1.1.1.1.1.1.1

set to halve again 0.125 = 111.111.111.111.111.111

set to even further with decrease the bits

For fine precision use FLOATS!!!!!


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2017 14:07
I have no idea what your examples are suppose to be showing. And floats have a limit on their precision. Integers have no decimal so I'm not sure what the comparison here is.

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds

Login to post a reply

Server time is: 2024-11-22 15:15:49
Your offset time is: 2024-11-22 15:15:49