I was able to lern temperature quickly. We rented a villa in Italy in
March. The owner said he'd program the thermostat for us before he
left. He asked if 14 was Ok. I nodded yes. Next morning I learned to
convert and set it for 20.
Not likely, even in languages which are strongly typed, and certainly
not for unity...integers are stored exactly under IEEE-754 until their
magnitude overflows precision which for a double is ~15 decimal digits.
1.0+eps(1) may not == 1, true, but that's not the same thing.
Unfortunately very likely, and, as I said, a common source
While IEEE-754 defines an exact floating point equivalent
for integers, not everything abides by IEEE-754. So while
your PC is likely to get int 1 == float 1.0 correct, an
embedded processor (like the one in your cell phone) may
Mixing ints and floats gets a lot of programmers that are
new to embedded processors in trouble.
Only when counting objects, not when measuring.
You can have precisely two boards, but it is highly unlikely that you
would have a board that is "infinitely precisely" two yards long.
Q. How long is a 72 1/2 inch board to the nearest yard?
A. 2 yards.
2 yards is NOT an infinitely precise measure of the board.
To three significant digits, the board is 2.01 yards long.
HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.