ClickHouse/dbms/tests/queries/0_stateless/01013_hex_decimal.sql

9 lines
349 B
MySQL
Raw Normal View History

SELECT hex(toDecimal32(1.0, 2));
SELECT hex(toDecimal32(1., 2));
SELECT hex(toDecimal32(0.000578, 6));
SELECT hex(toDecimal64(-123.978, 3));
SELECT hex(toDecimal128(99.67, 2));
SELECT hex(toDecimal32(number, 3)) FROM numbers(200, 2);
SELECT hex(toDecimal64(number, 5)) FROM numbers(202, 2);
SELECT hex(toDecimal128(number, 9)) FROM numbers(120, 2);