const - SkycoinWikis/CXSL GitHub Wiki

CX HOME » CX » CXSL » CONST PACKAGE

const package

To use the const-functions you first have to import it:

import "const"

Table of Contents

f64 + f32 constants

f64 Name f32 Name Value
const.M_PI const.M_PI_F
const.M_PI_2 const.M_PI_2_F
const.M_PI_4 const.M_PI_4_F
const.M_1_PI const.M_1_PI_F
const.M_2_PI const.M_2_PI_F
const.M_2_SQRTPI const.M_2_SQRTPI_F
const.M_SQRT2 const.M_SQRT2_F
const.M_SQRT1_2 const.M_SQRT1_2_F
const.M_E const.M_E_F
const.M_LOG2E const.M_LOG2E_F
const.M_LOG10E const.M_LOG10E_F
const.M_LN2 const.M_LN2_F
const.M_LN10 const.M_LN10_F

i32 constants

Name Value
const.M_I32MIN -2147483648
const.M_I32MAX 2147483647
const.M_UI32MIN 0
const.M_UI32MAX 4294967295

i64 constants

Name Value
const.M_I64MIN -9223372036854775808
const.M_I64MAX 9223372036854775807
const.M_UI64MIN 0
const.M_UI64MAX 18446744073709551615