Unit NpsMath |
Classes |
Functions |
AbsoluteToPercent - function AbsoluteToPercent returns Fraction/FullSize as a percent
convert and round
Assert -
procedure Assert
if Condition is False, throws the given exception type with the given message attached to it.
AssertFMT -
procedure AssertFMT
if Condition is False, throws the given exception type with
a message created from the Message and Args parameters
Between - **********************************
* Проверка на вхождение в диапазон *
Max -
Min -
PercentToAbsolute -
function PercentToAbsolute
returns the given percentage of FullSize
Sign -
SortStrings -
procedure SortStrings
sorts the given list using the SortFunc to order the elements
SwapInt - **********************************
* Проверка на вхождение в диапазон *
SwapLong -
Types |
Constants |
Variables |
Functions |
use floating point arithmetic to implement conversion
Types |
TPercentRange = 0 .. 100range for percentage values
TSortStringsFunc = function (List: TStrings; Index1, Index2: Integer): Integercallback function type for sorting strings should return > 0 if the element at Index1 > element at Index2 = 0 if they are equal < 0 if the element at Index1 < element at Index2
Constants |
Variables |