cancel
Showing results for 
Search instead for 
Did you mean: 

domain and range

kdb_newbie
New Contributor II

What do the below letters mean? https://code.kx.com/q/ref/deltas/ 

domain: b g x h i j e f c s p m d z n u v t
range: i . i i i j e f . . n i i f n u v t

Thank you!

I had like to understand how do I read these when referring to the documentation.

1 ACCEPTED SOLUTION

gyorokpeter-kx
Contributor
Contributor

The letters refer to the datatypes as listed at Reference card | kdb+ and q documentation - Kdb+ and q documentation (kx.com) . b = boolean, i = int etc.

The domain is the data type of the input and the range is the data type of the output. So if you give it a boolean you get an int, if you give it a real or float you get a real or float back etc. GUID, char and symbol are marked with a dot to indicate that these types are not supported.

View solution in original post

1 REPLY 1

gyorokpeter-kx
Contributor
Contributor

The letters refer to the datatypes as listed at Reference card | kdb+ and q documentation - Kdb+ and q documentation (kx.com) . b = boolean, i = int etc.

The domain is the data type of the input and the range is the data type of the output. So if you give it a boolean you get an int, if you give it a real or float you get a real or float back etc. GUID, char and symbol are marked with a dot to indicate that these types are not supported.