目录

fmod()

例子

double c = fmod(3.5, 2.2);  // Sets c to 1.29
double d = fmod(4.5, 5.0);  // Sets d to 4.5

描述

fmod() 返回 x 除以 y 的余数.

语法

fmod(x, y)

参数

x double, float or int

y double, float or int

返回 double