SELECT ROUND(123.4567, 2)` gives me `123.4600`
But I need 123.46
.
Data type of field is money.
Solution:
<%# DataBinder.Eval(Container.DataItem, "FieldName","{0:0.00}") %>
SELECT CAST(ROUND(123.4567, 2) AS MONEY)
Will do what you are after
If applicable, format on the view layer, not on the data layer, i.e. read all the data and truncate it later (such as in C# client)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With