Silverfrost Logo About Us | Contact Us
 

SIGN

Platform

x64, Win32, .NET

Purpose

To form a number from the absolute value of one number and the sign of another.

Class

Elemental function.

Syntax

FUNCTION SIGN(A, B)

Description

A can be integer or real. B and the result of the function have the same type as A.

Return value

The result is formed by taking the absolute value of A and multiplying by -1 if B is negative. If B is zero the result may be unsafe.

 

 

Copyright © 1999-2017 Silverfrost Limited