I am using kdb 2.7.
The table goes like t:( a:float$();b:
int$())
Now if I try to do `t insert (a:12;b:11) this fails but a:12.0 works. This is kind of painful for me. Is there a way to have automatic int to float conversion?
I am using kdb 2.7.
The table goes like t:( a:float$();b:
int$())
Now if I try to do `t insert (a:12;b:11) this fails but a:12.0 works. This is kind of painful for me. Is there a way to have automatic int to float conversion?
You don’t need the assignment on the right hand side – just the list that defines the row:<o:p></o:p>
<o:p> </o:p>
`t insert (12f;11)<o:p></o:p>
<o:p> </o:p>
Note the f which makes 12 a float. <o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
From: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] On Behalf Of kdb newb
Sent: 15 September 2013 09:50
To: personal-kdbplus@googlegroups.com
Subject: [personal kdb+] No automatic int -> float conversion?<o:p></o:p>
<o:p> </o:p>
I am using kdb 2.7.<o:p></o:p>
The table goes like t:( a:float$();b:
int$())<o:p></o:p>
<o:p> </o:p>
Now if I try to do `t insert (a:12;b:11) this fails but a:12.0 works. This is kind of painful for me. Is there a way to have automatic int to float conversion? <o:p></o:p>
–
Submitted via Google Groups