MySQL TRUNCATE FunctionThe truncate() is a Math function of MySQL. This function is used to get the given number truncated up to given certain decimal places. SyntaxParameter:Number: It is the number to truncate. decimal_places: It is the number of decimal places truncate to. ReturnsThis function returns the number truncated to a certain number of decimal places. Example 1Output: Example 2Output: Example 3Output: Example 4Output: Next TopicMySQL Math |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India