「Atof」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
編集の要約なし
編集の要約なし
1行目: 1行目:
{{AutoLISP}}
; 構文
; 構文
: (atof ''string'')
: (atof ''string'')
5行目: 6行目:
; 機能
; 機能
: 文字列を実数に変換する。  
: 文字列を実数に変換する。  


; 引数
; 引数
:* string : 実数に変換する文字列。  
:* string : 実数に変換する文字列。  


; 戻り値
; 戻り値
15行目: 18行目:
; サンプル
; サンプル
<pre class="brush: autolisp;">
<pre class="brush: autolisp;">
(atof "97.1")  
(atof "97.1")  
97.1
97.1
 
(atof "3")
3.0
 
(atof "3.9")
3.9


(atof "3")  
(atof "0.0")  
3.0
0.0


(atof "3.9")  
(atof "あ?")  
3.9
0.0
</pre>
</pre>


29行目: 38行目:
関連事項
関連事項
* [[rtos]] 関数
* [[rtos]] 関数
* [[atoi]]
* [[itoa]]


[[Category:AutoLISP]]
[[Category:AutoLISP]]

2015年8月11日 (火) 10:42時点における版

構文
(atof string)


機能
文字列を実数に変換する。


引数
  • string : 実数に変換する文字列。


戻り値
実数。


サンプル
(atof "97.1") 
97.1

(atof "3") 
3.0

(atof "3.9") 
3.9

(atof "0.0") 
0.0

(atof "あ?") 
0.0



関連事項