Skip to content

numberOfDecimalPlaces

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/dot/blob/main/js/util/numberOfDecimalPlaces.ts for the most up-to-date information.

Overview

Determines the number of decimal places in a value.

@param value - a finite number, scientific notation is not supported for decimal numbers

@author Jonathan Olson <jonathan.olson@colorado.edu>

Source Code

See the source for numberOfDecimalPlaces.ts in the dot repository.