FirstClassトップページ


 ヘルプの目次
このヘルプについて このヘルプについて
 
エンドユーザ向けヘルプ エンドユーザ向けヘルプ
Client Help クライアントヘルプ
Web Help Webアクセスヘルプ
ScreenReader Help スクリーンリーダ
Form フォーム
Synchronization 同期
Definitions 用語
container コンテナ
 
管理者向けヘルプ 管理者向けヘルプ
Administration サーバの管理
Internet Services インターネットサービス
Customization Tools カスタマイズツール(英語)
Administering OTSW OTSWの管理
OTSW Custodian OTSW Custodian
Using FirstClass ED FirstClass ED(英語)
 
バナー:
 
 Sgn
 
Purpose
Returns an integer value indicating the sign of a number.


If the number is
Sgn returns
less than 0
-1
greater than 0
1
0
0

Syntax
Sgn (NumericExpression)


NumericExpression
Any valid numeric expression.

Example
Sub Main()
        Dim dbl As Double
        Dim mysign As Integer
        dbl = 3.1415
        mysign = Sgn (dbl)
        If mysign < 0 Then
                Print "The value of 'dbl' is negative"
        Else
                If mysign > 0
                        Print "The value of 'dbl' is positive"
                Else
                        Print "The value of 'dbl' is zero"
                End If
        End If
End Sub

 

Copyright(C) 2002-2011 FC Management Co. All Rights Reserved