Difference between revisions of "LlModPow"

From Second Life Wiki
Jump to navigation Jump to search
m (changed sort= flag order to effect proper order in function category)
(has poor internal precision, as per feedback.secondlife bug report; leaving a caveat for now, can be removed if/when it gets fixed)
 
(4 intermediate revisions by 3 users not shown)
Line 4: Line 4:
|return_type=integer
|return_type=integer
|p1_type=integer|p1_name=a
|p1_type=integer|p1_name=a
|p2_type=integer|p2_name=b|p2_desc=capped at 0xFFF (16 bits)
|p2_type=integer|p2_name=b
|p3_type=integer|p3_name=c
|p3_type=integer|p3_name=c
|func_footnote
|func_footnote
Line 10: Line 10:
|return_text=that is '''a''' raised to the '''b''' power, mod '''c'''. ( ('''a'''**'''b''')%'''c''' )
|return_text=that is '''a''' raised to the '''b''' power, mod '''c'''. ( ('''a'''**'''b''')%'''c''' )
|spec
|spec
|caveats=*'''b''' is capped at 0xFFF (16 bits)
|caveats=*The internal precision is limited. If '''a<sup>b</sup>''' is larger than 32 bits, the results are likely to be incorrect.{{footnote|Reported {{date|2024-11-03}}: https://feedback.secondlife.com/scripting-bugs/p/getting-wrong-results-from-llmodpow}}
|constants
|constants
|examples
|examples
Line 19: Line 19:
|also_articles
|also_articles
|notes
|notes
|permission
|cat1=Math
|negative_index
|cat1
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 04:42, 3 November 2024