absolutevalue/ja: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "source>" to "syntaxhighlight>") |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: val = absolutevalue(num)] | [h: val = absolutevalue(num)] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!--You can use the following shorthand for this function:-> | <!--You can use the following shorthand for this function:-> | ||
下記の短縮形を使用可能: | 下記の短縮形を使用可能: | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: val = abs(num)] | [h: val = abs(num)] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 16: | Line 16: | ||
|examples= | |examples= | ||
====負の数====<!--Negative Number--> | ====負の数====<!--Negative Number--> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: absolutevalue(-3)] | [r: absolutevalue(-3)] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!--Returns:< | <!--Returns:<syntaxhighlight lang="mtmacro" line start=2>3</syntaxhighlight>--> | ||
戻り値:< | 戻り値:<syntaxhighlight lang="mtmacro" line start=2>3</syntaxhighlight> | ||
====正の数====<!--Positive Number--> | ====正の数====<!--Positive Number--> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: abs(4)] | [r: abs(4)] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!--Returns:< | <!--Returns:<syntaxhighlight lang="mtmacro" line start=2>4</syntaxhighlight>--> | ||
戻り値:< | 戻り値:<syntaxhighlight lang="mtmacro" line start=2>4</syntaxhighlight> | ||
====十進数====<!--Decimal Number--> | ====十進数====<!--Decimal Number--> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: abs(3.4)] | [r: abs(3.4)] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<!--Returns:< | <!--Returns:<syntaxhighlight lang="mtmacro" line start=2>3.4</syntaxhighlight>--> | ||
戻り値:< | 戻り値:<syntaxhighlight lang="mtmacro" line start=2>3.4</syntaxhighlight> | ||
}} | }} | ||
[[Category:Mathematical Function]] | [[Category:Mathematical Function]] | ||
{{Languages|absolutevalue}} | {{Languages|absolutevalue}} |