roundIfVeryClose
roundIfVeryClose rounds a float to the nearest integer when its difference from that integer is below a configurable threshold, making it useful for cleaning up numbers shown in displays. Its optional argument x sets the threshold to 10^(-x), with a default of 3; larger arguments require the input to be closer to an integer.
AI Generated
This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.
- Download via Deken.
Open
Pdand go toToolsFind Externals. Search foreasyflowand install it. Then create an object withdeclare -lib easyflow -path easyflow. Finally, useroundIfVeryCloseor any other object fromeasyflow.