Skip to content

Long

Spice
import "std/type/long";

Functions

isPowerOfTwo

Spice
public f<bool> isPowerOfTwo(long input)

Check if a long is a power of two

Parameters

Name Type Description
input long Input number

Returns: bool — Is power of two