sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGLIntMath

see header file

see source file

class SGLIntMath;

part of SGEXTN module SG_Math

static function class providing int mathematical operations

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLIntMath.h›

CMake target for BuildLah: SGEXTN::SG_Math

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

static member functions

static int absoluteValue(int x);

static int highestCommonFactor(int a, int b);

static int lowestCommonMultiple(int a, int b);

static int maximum(int a, int b);

static int minimum(int a, int b);

Detailed Description

SGLIntMath provides mathematical operations such as highest common factor and lowest common multiple for the int data type.

Implementation Details

Uses ‹cmath› from Standard Template Library

static int absoluteValue(int x);

Returns the absolute value of x.

static int highestCommonFactor(int a, int b);

Returns the highest common factor of a and b.

static int lowestCommonMultiple(int a, int b);

Returns the lowest common multiple of a and b.

static int maximum(int a, int b);

Returns the maximum of a and b.

static int minimum(int a, int b);

Returns the minimum of a and b.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects