Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Math_RoundDown

CSV_Math_RoundDown

Rounds a real value down (toward 0) to a specified number of decimal places.

Syntax

CSV_Math_RoundDown(rValue, iDecPlaces)

#rValue:

The value to be rounded down.

#iDecPlaces:

The number of decimal places the value is rounded down to.

Example

CSV_Math_RoundDown(4.328, 2) = 4.32
CSV_Math_RoundDown(4.321, 2) = 4.32
CSV_Math_RoundDown(-4.321, 2) = -4.32
CSV_Math_RoundDown(512.3, -2) = 500

		

Return Value

Rounded value.