|
|
5仿真币
to setup
+ O- R+ @. J, |& |- x) ]$ i clear-all
. i- B% t8 x4 ]0 f$ `# } crt 5
2 G0 x9 j1 A3 S7 L0 h! _ absolute-value 10
8 Y4 H6 N( ^, Wend# C, x2 g2 T7 a2 ?5 C5 j, w7 _4 E
to-report absolute-value [ number ]
$ j! K0 ?4 `' x& B n4 o) u; O# [ ifelse number >= 0 [report number] [report (- number)]
& ^; p8 @; J) l% P% P( W ^' Jend' n2 e; A; P& e( r- o
check时出错 |
|