如何在Kusto上显示小数:

huangapple go评论46阅读模式
英文:

How to display decimals on Kusto

问题

我有这段代码:

| 扩展 missing_time_hours = (missing_time_minutes / 60)

基本上是将171除以60,得到2作为结果。

问题是我想要2.85作为我的结果,而不是2。
我应该如何做到这一点?

英文:

I have this code

| extend missing_time_hours = (missing_time_minutes / 60)

which is basically dividing 171/60 and giving me 2 as a result.

The issue is that I want 2.85 as my result, not 2.
How could I do this?

答案1

得分: 1

| 扩展 missing_time_hours = (missing_time_minutes / 60.0)

英文:

Try this

| extend missing_time_hours = (missing_time_minutes / 60.0)

huangapple
  • 本文由 发表于 2023年3月15日 18:56:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75743764.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定