modMathTools 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

StepGauss 函數

說明

階梯函數

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
vSource Object - 必須 (無) 數值
wFlags enuStepGauss 4 可省略 SG_Normal 數值進位方式:
常數名 數值 說明
SG_Normal 0 四捨五入法
SG_Lower 1 無條件捨去法
SG_Upper 2 無條件進位法

傳回值

傳回 Long 長整數

範例

Debug.WriteLine(StepGauss(1.5)) ' 傳回 2
Debug.WriteLine(StepGauss(1.4, modMathTools.enuStepGauss.SG_Upper)) ' 傳回 2
Debug.WriteLine(StepGauss(1.6, modMathTools.enuStepGauss.SG_Lower)) ' 傳回 1

基本條件

Visual Studio .Net 2002 以後相容版本 | MathTool.vb

請參閱

modMathTools 函式庫