How can I return from a float / decimal value with the following:
SELECT 210 FROM DUAL
... receive:
210.00
... instead 210?
210
Using pl / sql oracle 10g
SELECT TO_CHAR(210, '999.99') FROM dual;
Additional to_char formats are here .
Using:
SELECT CAST(210 AS NUMBER(3,2)) FROM DUAL
... to get the value as a numeric data type. TO_CHARwill work with the filter, but returns the result as a string.
TO_CHAR
Link:
to_char, , . to_char (210.00, '000.00') . Google " ", .
Edit Find "Number Format Elements" here .
Source: https://habr.com/ru/post/1729783/More articles:Calculate overlap between two rectangles on x / y grid? - mathEasy to use timestamps in Python - pythonCan I use HashMaps in J2ME? - java.NET.this thread call vs .control - multithreadingjQuery External Parser RSS Feed? - javascriptEditing and updating an Entity Framework object in ASP.NET MVC - asp.net-mvcHow to initialize a class object? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1729786/symfony-i18n-table-ways-to-get-fallback-default-value&usg=ALkJrhgicJ31ry87out4yfaIR1IHpVARxQAPI Security Question: SSL or more? - securityModeling Magnetism - javaAll Articles