Given value in database table is 23.045000,45.6090, 23.900
.
Output should be displayed as 23.045, 45.609, 23.9
Asked
Active
Viewed 84 times
1

Yogesh Sharma
- 49,870
- 5
- 26
- 52

Indhu
- 5
- 2
-
why not cast them as `select cast('23.045000' as float)` – Yogesh Sharma Dec 05 '17 at 09:47
-
Can you be more specific about which "output" you're asking? The result of an SQL query or some tool that you use to view the database? – Viktor Seifert Dec 05 '17 at 09:48
1 Answers
0
Cast the value as Float. like this
select cast(23.045000 as float)-->23.045
select cast(45.6090 as float)-->45.609
select cast(23.900 as float)-->23.9

Jayasurya Satheesh
- 7,826
- 3
- 22
- 39