Number.Sign
Syntax
Number.Sign(number as nullable number) as nullable number
About
Returns 1 for if number
is a positive number, -1 if it is a negative number, and 0 if it is zero. If number
is null, Number.Sign
returns null.
Example 1
Determine the sign of 182.
Usage
Number.Sign(182)
Output
1
Example 2
Determine the sign of -182.
Usage
Number.Sign(-182)
Output
-1
Example 3
Determine the sign of 0.
Usage
Number.Sign(0)
Output
0
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho