ClickHouse/tests/queries/0_stateless/02813_float_parsing.sql

22 lines
557 B
MySQL
Raw Normal View History

2023-07-31 08:03:44 +00:00
SELECT
toFloat64('1.7091'),
toFloat64('1.5008753E7'),
toFloat64('6e-09'),
toFloat64('6.000000000000001e-9'),
toFloat32('1.7091'),
toFloat32('1.5008753E7'),
toFloat32('6e-09'),
toFloat32('6.000000000000001e-9')
SETTINGS precise_float_parsing = 0;
2023-07-30 17:42:10 +00:00
SELECT
toFloat64('1.7091'),
2023-07-30 21:02:45 +00:00
toFloat64('1.5008753E7'),
2023-07-30 17:42:10 +00:00
toFloat64('6e-09'),
toFloat64('6.000000000000001e-9'),
toFloat32('1.7091'),
2023-07-30 21:02:45 +00:00
toFloat32('1.5008753E7'),
2023-07-30 17:42:10 +00:00
toFloat32('6e-09'),
toFloat32('6.000000000000001e-9')
SETTINGS precise_float_parsing = 1;