New kdb+/q users question forum
Developers new to q/kdb+
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Five easy pieces #2: getting around

From a recent question on Stack Overflow: q)q:9.638554216867471 q)rnd[q;2;`up] / round up "9.64" q)rnd[q;2;`dn] / round down "9.63" q)rnd[q;2;`nr] / round to nearest "9.64" q)rnd[q+0 1 2;3;`up] "9.639" "10.639" "11.639" Write rnd without any control ...

SJT by Contributor III
  • 550 Views
  • 6 replies
  • 2 kudos