10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System-defined FunctionsNameOperandTypeResultTypeDescriptionsmallint,integermoney(expr)c, char,varchar,text, float,integer(1),smallint,integer,moneyConverts the specifiedexpression to internal moneyrepresentation; roundsfloating point values, ifnecessarytext(expr) any text Converts any value to a textstring; this function removesany trailing blanks from c orchar string expressionsvarchar(expr) any varchar Converts any value to avarchar string; this functionremoves any trailing blanksfrom c or char stringexpressionsNumeric FunctionsOpenROAD provides the following numeric functions:Name Operand Type ResultTypeDescriptionabs(n)all numeric types andmoneysameas nabsolute value of natan(n)cos(n)all numeric types andmoneyall numeric types andmoneyfloat arctangent of n;returns a value from(-pi/2) to pi/2float cosine of n;returns a value from -1to 1exp(n)all numeric types andmoneyfloatexponential of nlog(n)all numeric types andmoneyfloatnatural logarithm of nmod(n,b)integer, smallint,integer1sameas bn modulo b;the result is the samedata type as bLanguage Elements 53

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!