roundfunction
A number as short as it can be written for a drawing: two places.
Import it
import { round } from "@johnmorrisdotca/tsunagi/draw";
Definition
function round(value: number): number
Parameters
| Name | Type | Description |
|---|---|---|
value | number | The number to round or interpret. |
Returns
number
A number as short as it can be written for a drawing: two places.
Examples
import { round } from "@johnmorrisdotca/tsunagi/draw";
console.log(round(1.23456));1.23What it prints (run when this page was built)