Modulus statement result differ between Julia and Matlab – best practice for avoiding rounding errors when working with floats in Julia?

前端 未结 0 338
野的像风
野的像风 2021-01-14 02:07

I’m writing a Julia program where I have a Float64 variable (val) that needs to meet the following criteria:

(val – m) % s == 0

相关标签:
回答
  • 消灭零回复
提交回复
热议问题