インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

abs()

   
Examples  
int a = abs(153);      //  a を 153に設定 
int b = abs(-15);      //  b を 15に設定 
float c = abs(12.234); //  c を 12.234 に設定
float d = abs(-9.23);  //  d を 9.23 に設定

Description  

ある数の値(等級)の絶対値を計算する。ある数の絶対値はいつも正の数になる。

   
Syntax  
abs(value)
   
Parameters  
value   整数か浮動少数点数

   
Returns   整数か浮動少数点数 (入力の値に応じて)
   
Usage   Web & Application
   
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas