> select TheNumberFromConsole/(select max(division_point) from table1) Try select '1234.5678'/(select max(division_point) from table1); The quotes around the apparent floating point number keeps Postgres from assuming that it *is* a floating point number, and it later decides that it must have been a numeric() type. - Thomas
- [SQL] Type conversion Ice Planet
- Re: [SQL] Type conversion Tom Lane
- Re: [SQL] Type conversion Ed Loehr
- [SQL] Type conversion Ice Planet
- Thomas Lockhart