Skip to content

dos_normalize

Dale Fugier edited this page Nov 8, 2023 · 1 revision

Converts a parameter, or value, to a normalized parameter; one that ranges between 0.0 and 1.0.

Syntax

(dos_normalize number minimum maximum)

Parameters

number

The number to normalize that is within the specified range.

minimum

The minimum number in the range.

maximum

The maximum number in the range.

Returns

The normalized value, if successful

nil on error.

Example

Command: (dos_normalize 39 0 255)
0.152941

Command: (dos_parameterize 0.152941 0 255)
39.0

Clone this wiki locally