LlModPow

From Second Life Wiki

Jump to: navigation, search

Contents

Description

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)

Examples

Personal tools