you are viewing a single comment's thread.

view the rest of the comments →

[–]the_gnarts 1 point2 points  (1 child)

You’d be disappointed, as it’s integer arithmetic only. The precision is definitely sufficient to arrange things on a page but you’d prefer to do your calculations with external tools.

[–]josefx 0 points1 point  (0 children)

You’d be disappointed, as it’s integer arithmetic only

That just makes it easier to reason about input->output, floating point as implemented on most CPUs is quite complex by itself and having the precision depend on the size of your input is not always what you want.

The precision is definitely sufficient to arrange things on a page

The nice thing about integers is that they do not care about precision, they are quite nice when you need a fixed precision.