Skip to content

Short

Spice
import "std/type/short";

Functions

isPowerOfTwo

Spice
public f<bool> isPowerOfTwo(short input)

Check if a short is a power of two

Parameters

Name Type Description
input short Input number

Returns: bool — Is power of two