Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 32: Integer exponentiation by squaring

See programming-idioms.org:

Code

Running Example

Another version showing more results using wrap-around, saturating and overflow-checking versions:

last changed: 2024-07-01