Github
Issues
npm
Preparing search index...
The search index is not available
metamorphosis
metamorphosis
roundIfNeeded
Function roundIfNeeded
round
If
Needed
(
roundTo
,
num
)
:
any
If passed a number, rounds it, otherwise returns it.
Parameters
roundTo
:
number
|
false
num
:
any
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
metamorphosis
Units
Base
Control
Var
Interpolated
Vars
Theme
Interpolated
Vars
Options
Interpolator
Interpolator
Options
Key
Namer
Numerical
Interpolator
Stop
Entry
Value
create
Arrayfrom
Ratio
create
Numerical
Interpolator
css
Object
To
String
default
Key
Namer
escape
Key
lerp
lerp
Value
modifiy
Keys
pad
Num
padded
By
Step
Key
Namer
padded
Key
Namer
round
If
Needed
scale
Value
tailwind
Color
Key
Namer
Generated using
TypeDoc
If passed a number, rounds it, otherwise returns it.