String Conversions
Not plannedHello,
How is it that
SELECT CONVERT('100.000',bigdecimal)
works just fine and
SELECT CONVERT('100.000',integer)
fails?
You should fix this.
Thanks.
Chris
-
Comment actionsOfficial comment
Hi Chris,
this behaviour comes directly from Java, see here:
https://stackoverflow.com/questions/1450991/how-to-do-an-integer-parseint-for-a-decimal-numberAs a workaround, would this be sufficient for you? It will cut off the decimal part.
SELECT CONVERT(CONVERT('100.900', float),integer)Best,
Matthias
Please sign in to leave a comment.
Comments
3 comments