Name

IEEERemainder Function

Class

System.Math

Syntax

Math.IEEERemainder(x, y)
x and y

Use: Required

Data Type: Double

Return Value

Returns the remainder after dividing x by y

Description

Returns a Double whose value is the remainder after dividing x by y

Example

Math.IEEEremainder(4, 3)          ' Returns 1

Rules at a Glance

  • VB has a built-in Mod operator that also returns the remainder upon division.

  • The IEEERemainder function complies with the remainder operation as defined in Section 5.1 of ANSI/IEEE Std 754-1985; IEEE Standard for Binary Floating-Point Arithmetic; Institute of Electrical and Electronics Engineers, Inc; 1985.

Programming Tips and Gotchas

This is a Shared member, so it can be used without creating any objects.

VB .NET/VB 6 Differences

The IEEERemainder function is new to the .NET Framework.

Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.