I have a table containing latitude and longitude values stored as strings (VARCHAR) which I\'d like to convert to FLOAT (10,6).
VARCHAR
FLOAT (10,6)
However the
This will convert to a numeric value without the need to cast or specify length or digits:
STRING_COL+0.0
If your column is an INT, can leave off the .0 to avoid decimals:
INT
.0
STRING_COL+0