英文:
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)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论