Mobile App Development Software
Alpha TransForm
|
Alpha Anywhere - Build Apps for Free
Alpha Software
Documentation
  • Reference
  • API
  • Functions
  • Data Type
  • Numeric Functions
  • Mathematical Functions
  • SIGN Function
Parent | Child | Previous | Next
  • *fraction Function
  • *FROM_HEX Function
  • *FROM_HEXC Function
  • *FROM_HEXN Function
  • *FROM_OCTAL Function
  • *from_octalc
  • *from_octaln Function
  • *increment_normalize Function
  • *increment_presented Function
  • *rational Function
  • *to_longint Function
  • *to_shortint Function
  • *to_ulongint Function
  • *to_ushortint Function
  • a5_enumapplicationdata Function
  • a5_number_format Function
  • ABS Function
  • ACOS Function
  • ASIN Function
  • ATAN Function
  • ATAN2 Function
  • B_TO_KB Function
  • BYTES_TO_MEGA Function
  • CEILING Function
  • CMTOINCHES Function
  • COS Function
  • DTOR Function
  • enum_drop Function
  • enumeration_load Function
  • enumeration_play Function
  • enumeration_save Function
  • EXP Function
  • FLOOR Function
  • INCHES_TO_TWIPS Function
  • INCHESTOCM Function
  • LOG Function
  • log10 Function
  • MATH_PI
  • MAX Function
  • MIN Function
  • MOD Function
  • PIXELS_TO_TWIPS Function
  • RAND Function
  • ROUND Function
  • ROUND_DOWN Function
  • ROUND_UP Function
  • RTOD Function
  • SIGN Function
  • SIN Function
  • SQRT Function
  • TAN Function
  • TWIPS_TO_INCHES Function
  • TWIPS_TO_PIXELS Function
 
Xbasic

SIGN Function

Syntax

Integer_Result as N = SIGN(N number)

Arguments

number

Numeric

Description

Returns 1 if a number is positive, 0 if it is zero and -1 if it is negative.

Discussion

SIGN() returns an Integer_Result representing the sign of a Number. SIGN() returns 1 for positive numbers, 0 for zero, and -1 for negative numbers.

Example

sign(24) -> 1
sign(-4) -> -1

See Also

  • Mathematical Functions
Report an issue with this page
Mobile App Development Software

Alpha TransForm - Quickly Build Enterprise Mobile Forms
- Try it for Free

Alpha Anywhere - Low Code Platform for Mobile Developers
- Build Apps for Free
Alpha Software Corporation

781.229.4500
© Copyright 2000-2020 Alpha Software Corporation. All Rights Reserved

Privacy Policy