MySQLTRUNCATE() Function
Definition and Usage
The TRUNCATE() function truncates a number to the specified number of decimal places.
Note: See also theFLOOR(),CEIL(),CEILING(), andROUND() functions.
Syntax
TRUNCATE(number,decimals)
Parameter Values
| Parameter | Description |
|---|---|
| number | Required. The number to be truncated |
| decimals | Required. The number of decimal places to truncate to |
Technical Details
| Works in: | From MySQL 4.0 |
|---|

