Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   Abs
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
General functions
 
Base functions
Cryptography APIs
Date and time manipulation
Developers support
Mathematic and floating point utility functions
Money type utility functions
Abs
  Returns the absolute value of a number
 
Syntax PUBLIC VARIANT FUNCTION Abs (VARIANT value)
 
Description This function returns the absolute value of a number. A number can be of the type INTEGER, MONEY or FLOAT.
A runtime-error is generated if a non-number is passed to this function.
 
Parameters
value The value for which the absolute value should be returned
 
Returns Absolute value of the value. The type of the returned number is the same as the type of the parameter.
 
Example
// returns 6
INTEGER example1 := Abs(-6);

// returns 4.4m
MONEY example1 := Abs(-4.4m);

// returns 5.36 (as a Float)
FLOAT example1 := Abs(5.36f);
 
In library 'system'
Abort
Abs
AnyToString
Avg
BindSchemaToTable
BindTransactionToSchema
BindTransactionToTable
ByteToString
CellDelete
CellExists
CellInsert
CellUpdate
CollectGarbage
Count
DecodeBase16
DecodeBase64
DecodeCharSet
DecodeHTML
DecodeJava
DecodePacket
DecodeURL
DecodeValue
Detokenize
EncodeBase16
EncodeBase64
EncodeCharSet
EncodeHTML
EncodeJava
EncodePacket
EncodeURL
EncodeValue
ExtendObject
GetBestCharacterSet
GetBoundTransactionFromSchema
GetBoundTransactionFromTable
GetByteValue
GetCell
GetUCValue
GroupedValues
IsAtEndOfStream
IsPrintableASCII
IsPrivilegeGranted
IsTypeidArray
IsTypeidComparable
IsValidUTF8
Left
Length
MakeEmptyRecord
MakeObject
Max
MemberExists
Min
ObjectExists
Print
PrintRecordArrayTo
PrintRecordTo
PrintTo
Random
ReadFrom
ReadLineFrom
RecordExists
RedirectOutputTo
Right
SearchElement
SearchLastElement
SearchLastSubstring
SearchSubstring
SeedRandomizer
SendBlobTo
Substitute
Substring
Sum
ToInteger
Tokenize
ToLowercase
ToString
ToUppercase
TrimWhitespace
UCLeft
UCLength
UCRight
UCSearchLastSubstring
UCSearchSubstring
UCSubstring
UCToString
UCTruncate
UnpackRecord
WaitForMultiple
 
Top To top of page