admin管理员组文章数量:1289869
Is there a relatively terse way to force scientific notation display in the following:
q)1000000000*25
25000000000
I.e., to instead return a scientific formatted value, as in:
q)1e9*25
2.5e+10
without having to use any scientifically notated arguments?
Is there a relatively terse way to force scientific notation display in the following:
q)1000000000*25
25000000000
I.e., to instead return a scientific formatted value, as in:
q)1e9*25
2.5e+10
without having to use any scientifically notated arguments?
Share Improve this question asked Feb 19 at 22:58 tommylicioustommylicious 3295 silver badges11 bronze badges 01 Answer
Reset to default 1The scientific notation isn't just a display choice, it's a datatype-specific construct (specifically for float datatype). There's no way to make a long integer look like a float without it being a float.
Even for floats, whether or not it displays as scientific notation depends on the precision settings in the instance
q)\P 0
q)1e9*25
25000000000f
q)\P 7
q)1e9*25
2.5e+010
本文标签: kdbForce scientific notation displayStack Overflow
版权声明:本文标题:kdb+ - Force scientific notation display - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741466361a2380335.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论