Get the remainder of dividing dividend by divisor. Unless divisor is zero, the result has the same sign as dividend.

number:modulus($dividend, $divisor, $decimal_points=0)

number:modulus(7.5,2,2)
#=> "1.50"

Copyright ©2013-2022 SunSed®. All rights reserved.