Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


fmod

Returns the floating point remainder of x/y.
Read time 2 minutesLast updated 4 days ago

Definition

fmod(float, float)

Returns the floating point remainder of x/y.
public static float fmod(float x, float y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

floatThe remainder of x/y.

fmod(float2, float2)

Returns the componentwise floating point remainder of x/y.
public static float2 fmod(float2 x, float2 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

float2The componentwise remainder of x/y.

fmod(float3, float3)

Returns the componentwise floating point remainder of x/y.
public static float3 fmod(float3 x, float3 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

float3The componentwise remainder of x/y.

fmod(float4, float4)

Returns the componentwise floating point remainder of x/y.
public static float4 fmod(float4 x, float4 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

float4The componentwise remainder of x/y.

fmod(double, double)

Returns the double precision floating point remainder of x/y.
public static double fmod(double x, double y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

doubleThe remainder of x/y.

fmod(double2, double2)

Returns the componentwise double precision floating point remainder of x/y.
public static double2 fmod(double2 x, double2 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

double2The componentwise remainder of x/y.

fmod(double3, double3)

Returns the componentwise double precision floating point remainder of x/y.
public static double3 fmod(double3 x, double3 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

double3The componentwise remainder of x/y.

fmod(double4, double4)

Returns the componentwise double precision floating point remainder of x/y.
public static double4 fmod(double4 x, double4 y)

Parameters

The dividend in x/y.

The divisor in x/y.

Returns

Type

Description

double4The componentwise remainder of x/y.