SGN: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 January 2023

23 January 2023

20 April 2022

  • curprev 21:4321:43, 20 April 2022SMcNeill talk contribs 683 bytes +683 Created page with "The '''SGN''' function returns the sign of a number value. {{PageSyntax}} :: sign% = SGN(value) * Returns -1 when a sign is negative, 0 when a value is zero, or 1 when a value is positive. * Function is used to store the original sign of a number. * '''QB64''' allows programs to return only _UNSIGNED variable values using a _DEFINE statement. ''Example:'' Checking and changing negative values to positive ones. {{CodeStart}} n = -100 {{Cl|IF...THEN|IF}} {..."