Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Procedures: How to format output to two fractions-digit (fixed)?

$
0
0

Hi,

 

I have a procedure which reports some values. The results e.g. for prices are [as measures]

 

100.01

99.1

75

 

But I want to the have the whole formating already include in the SQL-script, so it should look like

 

100.01

99.10

75.00

 

Do I need to convert the digits to VARCHAR and then manipulate the string? Or is there an easier solution?

 

I tried something like

 

out=SELECT ROUND(price,2)....

 

but this didn't help.

 

roland


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>