Function toRoundedString

Converts num to a string, removing trailing digits that were likely caused by precision errors.

import { toRoundedString } from '@js-draw/math';

console.log('Rounded: ', toRoundedString(1.000000011));
OpenSource licenses