BIS fnc romanNumeral: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) m (Fix Category:Pages using duplicate arguments in template calls and examples) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Convert integer to roman numeral (e.g. 42 becomes "XLII").|DESCRIPTION= | | Convert integer to roman numeral (e.g. 42 becomes "XLII"). |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| integer [[call]] | | integer [[call]] [[BIS_fnc_romanNumeral]] |SYNTAX= | ||
|p1= integer: [[Number]], [[String]], [[Code]] or [[Config]], same as [[BIS_fnc_parseNumber]] (used in this function) - any '''integer''' between 1 and 3999 |parameter 1= | |||
| [[String]] - Roman number |RETURNVALUE= | | [[String]] - Roman number |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>1 [[call]] | |x1= <code>1 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "I"}}</code> |EXAMPLE1= | ||
|x2= <code>3999 [[call]] [[BIS_fnc_romanNumeral]]; {{cc|returns "MMMCMXCIX"}}</code> |EXAMPLE2= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[BIS_fnc_ordinalNumber]], [[BIS_fnc_phoneticalWord]]|SEEALSO= | | [[BIS_fnc_ordinalNumber]], [[BIS_fnc_phoneticalWord]]|SEEALSO= | ||
}} | }} | ||
Revision as of 01:59, 1 October 2019
Description
- Description:
- Convert integer to roman numeral (e.g. 42 becomes "XLII").
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- integer call BIS_fnc_romanNumeral
- Parameters:
- integer: Number, String, Code or Config, same as BIS_fnc_parseNumber (used in this function) - any integer between 1 and 3999
- Return Value:
- String - Roman number
Examples
- Example 1:
1 call BIS_fnc_romanNumeral; // returns "I"
- Example 2:
3999 call BIS_fnc_romanNumeral; // returns "MMMCMXCIX"
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note