Test additional content header

ValueMath Class

Provides static methods for common mathematical functions for types implementing IValueProvider.

Definition

Namespace: Fluent.Calculations.Primitives.BaseTypes
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static class ValueMath
Inheritance
Object    ValueMath

Remarks

This class is an wrapper of native Math class in .NET Framework and enables the capturing of arguments. This library focuses on simpler business related calculations hence many trigonometric or logarithmic functions ar ommited at the moment.

Methods

AbsTReturns the absolute value of a Value.
CeilingTReturns the smallest integral value that is greater than or equal to the specified underlying decimal number.
FloorTReturns the largest integral value less than or equal to the specified underlying decimal number.
MaxTReturns the larger of two values.
MinTReturns the smaller of two values.
RoundT Rounds a decimal value to a specified underlying number of fractional digits, and rounds midpoint values to the nearest even number.
TruncateTCalculates the integral part of a specified underlying decimal number.

See Also