mathMin

Returns the smaller of two numbers. Takes a (first number), b (second number). Returns the minimum value.

Mathematics

Parameters & Returns

Parameters

a Double
b Double

Returns

Double

Quick Summary

Returns the smaller of two numbers. Takes a (first number), b (second number). Returns the minimum value.

Technical Exegesis...

Compares two values and returns whichever is smaller.

Examples: mathMin(5.0, 3.0) returns 3.0, mathMin(-2.0, 1.0) returns -2.0

Commonly used for clamping values, boundary checking, and finding minimums.

Example

Example.bam
; No example implemented yet