tags:

views:

88

answers:

1

can any one please let me know, i need to set the "Total Price" value to be in two decimal point value like "56.35". Now its showing more fraction values like "56.3566666". I need it to be format it by musql "SELECT" query.

+2  A: 
select
    format(field, 2) as formatted
from
    table

Do note that Format() returns a string, and the result will be with two decimal places (in the above example) - i.e. 100 will be formatted as 100.00.

Documentation.

Björn