3 ms·
> Are there any mainstream languages that consider a decimal number to be a primitive type Mathematica. But it's not particularely fast. > Unless you're using
by mschuetz 8y ago
> Are there any mainstream languages that consider a decimal number to be a primitive type
Mathematica. But it's not particularely fast.
> Unless you're using numbers that scale from very small to very large, like 3d games or scientific calculations, you don't actually want to use floating point.
Unfortunately, we can sometimes only use floats in 3D graphics and floats aren't even good for semi-large to large 3D scenes. Unity is a particular bad offender. It's not even necessary for meshes but having double precision transformation matrices would make life so much easier. Could simply use double precision world and view matrices, then multiply them together and the large terms would cancel out in the resulting worldView matrix, which can then by cast back to single precision floats.
- MauranKilom 8y agoNot to mention z-fighting for distant objects.