Convert decimal number to INT SQL Convert decimal number to INT SQL sql sql

Convert decimal number to INT SQL


How about the obvious:

CAST(3562.45*100 as INTEGER)


Or you can replace the decimal point.

select cast(replace('3562.45', '.','') as integer)

This way, it doesn't matter how many decimal places you have.