gpt4 book ai didi

kdb - Q 中的模量行为

转载 作者:行者123 更新时间:2023-12-04 21:52:23 24 4
gpt4 key购买 nike

为什么会这样

    -4.5 mod 2.3
0.1

按照 Q4Mortals 中的定义:

For a positive divisor, the remainder is defined as the difference between the dividend and the largest integral multiple of the divisor not exceeding the absolute value of the dividend.

2.3是不超过abs -4.5的最大整数倍。取差,-4.5 - 2.3 = -6.8

如果这个定义是错误的(看起来是这样),那么正确的定义是什么?

最佳答案

认为应该只是

For a positive divisor, the remainder is defined as the difference between the dividend and the largest integral multiple of the divisor not exceeding the dividend.

关于kdb - Q 中的模量行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18646462/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com