sincerely Singaporean

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

SGLLongLongMath

see header file

see source file

class SGLLongLongMath;

part of SGEXTN module SG_Math

static function class providing long long mathematical operations.

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLLongLongMath.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 long long absoluteValue(long long x);

static long long highestCommonFactor(long long a, long long b);

static long long lowestCommonMultiple(long long a, long long b);

static long long maximum(long long a, long long b);

static long long minimum(long long a, long long b);

Detailed Description

SGLLongLongMath provides mathematical operations for the long long data type, such as computing the highest common factor and the lowest common multiple.

Implementation Details

Uses ‹cmath› from Standard Template Library

static long long absoluteValue(long long x);

Returns the absolute value of x.

static long long highestCommonFactor(long long a, long long b);

Returns the highest common factor of a and b.

static long long lowestCommonMultiple(long long a, long long b);

Returns the lowest common multiple of a and b.

static long long maximum(long long a, long long b);

Returns the maximum of a and b.

static long long minimum(long long a, long long 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