fmod()

Return the floating point remainder of a division operation.

Syntax

fmod(dividend,divisor)

Parameters

Parameter

Definition

dividend

floating point value whose remainder will be returned after being divided by divisor

divisor

floating point value that will divide dividend

Description

The fmod() function returns the floating point remainder of the division ( dividend )/( divisor ).

Example

The following fmod() function will return the floating point remainder from the division 10.3 divided by 3.1 (which is 1):

print(fmod(10.3,3.1) . "\n");


Was this page helpful? Yes No Submitting... Thank you

Comments