Converts num to a string, removing trailing digits that were likely caused by precision errors.
num
import { toRoundedString } from '@js-draw/math'; console.log('Rounded: ', toRoundedString(1.000000011));
Converts
num
to a string, removing trailing digits that were likely caused by precision errors.Example