Quartz.Formatter (Quartz v0.8.1)
View SourceFunctions to help display floats and dates.
Summary
Functions
Display a float rounded to the given number of decimals.
A function to display rounded length with a given number of decimals.
Functions
Display a float rounded to the given number of decimals.
A function to display rounded length with a given number of decimals.
This is used mainly when rendering sketches to SVG. The goal of defining this function here is to centralize the default number of decimal places for floats that are used as part of drawing dimensions.
This function is public API and is meant to be used by end users who might want to implement new sketches.