Skip to content

Int

Spice
import "std/type/int";

Functions

isPowerOfTwo

Spice
public f<bool> isPowerOfTwo(int input)

Check if an int is a power of two

Parameters

Name Type Description
input int Input number

Returns: bool — Is power of two