Header menu logo Rhino.Scripting

PrettyFormat Module

Functions and values

Function or value Description

PrettyFormat.float x

Full Usage: PrettyFormat.float x

Parameters:
    x : float

Returns: string

Formatting with automatic precision e.g.: 0 digits behind comma if above 1000 if there are more than 15 zeros behind the comma just '~0.0' will be displayed if the value is smaller than PrettySettings.roundToZeroBelow '0.0' will be shown. this is Double.Epsilon by default

x : float
Returns: string

PrettyFormat.single x

Full Usage: PrettyFormat.single x

Parameters:
    x : float32

Returns: string

Formatting with automatic precision e.g.: 0 digits behind comma if above 1000

x : float32
Returns: string

Type something to start searching.