Real number = 1.0000 units of cloth
Integer = 10000 units of cloth
Everything in Dwarf Fortress is measured in integers for some reason. Usually it's not a problem, but the new fractional unit system with cloth makes the choice a bit odd. Can't be a performance issue since modern processors do real number math in hardware.
.........
Integers
are real numbers. They're specifically and explicitly defined as real numbers. You cannot have an integer that is not a real number.
There are no fractional costs. All costs are in integers. A single cloth object contains 10,000 units of cloth, and all reactions involving cloth use integer amounts of cloth.
What you're asking for is to convert the entire mathematical foundation of the unit system in the game from integers to floating point numbers for really no good reason:
- There's no real performance benefit
- There could be a decided performance decrease; if doubles are used, they're twice the size of ints, and if floats are used, they suffer from imprecision errors with repeated use
- They're no more obvious than integers are and take more screen real-estate (as you have to list all the preceding zeroes with a floating point number but not with an integer)
The main benefit to using floating point numbers is that they're the only way to handle true fractions. When you're taking 63% of a number, you're not guaranteed to get an accurate end result if you do the math using an integer. When all of your math is done using fixed, whole numbers, floating points offer no benefits.