Expand description
Numeric formatting shared by annotations and app panels.
Functionsยง
- compact_
decimal - Fixed precision without trailing fractional zeros. Preserves signed zero; callers that use the result as an identifier may choose to normalize it.
- snap_
drag_ moved - One stored number after a drag: on the grid if the drag moved it, otherwise
exactly what it was, so that dragging X leaves a typed Y of
1.23456alone. - snap_
drag_ value valueon the 0.001 drag grid. Divides by the exact integer rather than multiplying by0.001, which is not representable and would bring back the12.300000000000001the grid exists to remove. Never returns-0.