LlModPow

From Second Life Wiki

Jump to: navigation, search

Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Summary

Function: integer llModPow( integer a, integer b, integer c );
300 Function ID
1.0 Delay
10.0 Energy

Returns an integer that is a raised to the b power, mod c. ( (a**b)%c )

• integer a
• integer b capped at 0xFFFF (16 bits)
• integer c

Caveats

  • This function causes the script to sleep for 1.0 seconds.
  • b is capped at 0xFFFF (16 bits)

Search JIRA for related Bugs

Examples

Deep Notes

This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
In other languages