TRUNCATE, Beheading Decimal Value

Syntax : TRUNCATE(decimal,digit)

In MySQL, truncate function is used to chop off a decimal fractions

Example : SELECT TRUNCATE(12.844556,3); 

 

No comments:

Post a Comment