![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, The round() function in 9.2 has got me stumped to the point I think it’s a buggy version…. Has anyone got a quick primer with examples on what it should return? If I do… select round(1.99,-1), round(1.99, 0), round(1.99,1) Why do I get 0, 1, 1 as the results? |
|
Why are the data types of the answers all decimal(16,0)? |
#3
| |||
| |||
|
|
Hi All, The round() function in 9.2 has got me stumped to the point I think it's a buggy version.... Has anyone got a quick primer with examples on what it should return? If I do... select round(1.99,-1), round(1.99, 0), round(1.99,1) Why do I get 0, 1, 1 as the results? |
|
Why are the data types of the answers all decimal(16,0)? |
#4
| |||
| |||
|
|
Hi All, The round() function in 9.2 has got me stumped to the point I think it's a buggy version.... Has anyone got a quick primer with examples on what it should return? If I do... select round(1.99,-1), round(1.99, 0), round(1.99,1) Why do I get 0, 1, 1 as the results? |
|
Why are the data types of the answers all decimal(16,0)? |
#5
| |||
| |||
|
|
Hi Karl, What do you get for: create table xx as select trunc(1.99,-1) as a, trunc(1.99, 0) as b, trunc(1.99,1) as c; |
![]() |
| Thread Tools | |
| Display Modes | |
| |