forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
5.0 KiB
5.0 KiB
bin
This function is used to return the binary format of a.
Syntax
bin(BIGINT a)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
a |
Yes |
DOUBLE, BIGINT, DECIMAL, or STRING |
The value is an integer. If the value is not of the BIGINT type, the system will implicitly convert it to the BIGINT type for calculation. |
Example Code
The value 1 is returned.
select bin(1);
The value NULL is returned.
select bin(null);
The value 1000 is returned.
select bin(8);
The value 1000 is returned.
select bin(8.123456);
Parent topic: Mathematical Functions