//--- 入力パラメータ
input int InpValue = -10; // 任意の値を入力
//+------------------------------------------------------------------+
//| スクリプトプログラム開始関数 |
//+------------------------------------------------------------------+
void OnStart()
{
//--- 入力された数値の絶対値を取得する
uint abs_value=MathAbs(InpValue);
//--- 操作ログに値を出力する
PrintFormat("The entered value %d received the value %u after using the MathAbs() function",InpValue,abs_value);
}
|