LisaacTM Platform

UINTEGER


Generic Integer.
BSBS : Tout a REVOIR !!!!!!!!!!!
Inherit/Insert Summary
parent_numeric No developed.
 
Range.
maximum
minimum
 
Binary Operator.
Infix '%'
Infix '%#'
Infix '**'
pow
 
Conversion format with test.
bound_test to
 
- to_integer:INTEGER <- Self;
to_pointer
 
BCD Format.
to_binary
Self is BCD formatted, convert to binary value
to_bcd
Self is binary formatted, convert to bcd value
 
Facility typing.
kb
Self in Kilobyte (ie. 1kb = 1024 bytes)
mb
Self in megabytes
gb
Self in gigabytes
tb
Self in terabytes
 
Logic Operator
Infix '&'
AND operator
Infix '|'
OR operator
Infix '^'
XOR operator
Infix '>>'
Shift right
Infix '<<'
Shift left
 
Unary operator
Prefix '~'
(-SELF.one) - Self;
Test.
align_power
is_power_2
TRUE is Self is power of 2
 
Function :
sqrt
Square root
Suffix '!'
Factorial. Use it like "45!;" or "bar!.print;"
factorial
Factorial.
fibonacci
Fibonacci
is_odd
Is odd ?
is_even
Is even ?
gcd
Great Common Divisor of self and other.
 
Random
random
Random number between 0 to maximum in SELF.
random_upper
Random number between 0 to upper.
random_between and
Random number between lower to upper.
 
Looping.
times
 
Convertion
*French, Slot, Description : Renvoi une chaîne représentant le nombre en base 10 *English, Slot, Description : String of the number in base 10
to_string
Convert the decimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is -1.
append_in
Append in the buffer the equivalent of to_string. No new STRING creation during the process. Append in the buffer the equivalent of to_string. No new STRING creation during the process.
decimal_digit
Gives the corresponding CHARACTER for range 0..9.
digit
hexadecimal_digit
Gives the corresponding CHARACTER for range 0..15.
to_character
Return the coresponding ASCII character.
to_octal
Gives coresponding octal value.
to_hexadecimal
Convert the hexadecimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is "FFFFFFFF" on a 32 bit machine.
to_hexadecimal_format
Convert the hexadecimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is "FFFFFFFF" on a 32 bit machine.
to_hexadecimal_in
Append in buffer the equivalent of to_hexadecimal. No new STRING creation during the process.
to_hexadecimal_in format
Append in buffer the equivalent of to_hexadecimal. No new STRING creation during the process.
to_binary_in format
Append in buffer the equivalent of to_binary_string. No new STRING creation during the process.
 
Hashing:
hash_code
BSBS: Il faut revoir => Depending processor
Print
print
Print
print_positif
Display this number without memory.
print_hex
Display this number without memory.
 
Debug manager facility.
Infix '?'
 
Slot Summary
to_raw_pointer
 

Inherit/Insert Detail

parent_numeric

.../base/number/integer/uinteger.li line #29

Section:
Insert

Profile:
- SelfSELFparent_numeric : NUMERIC

Range.

maximum

.../base/number/integer/uinteger.li line #37

Section:
Public

Profile:
- SelfSELFmaximum : UINTEGER_64

minimum

.../base/number/integer/uinteger.li line #39

Section:
Public

Profile:
- SelfSELFminimum : INTEGER_64

Binary Operator.

Infix '%'

.../base/number/integer/uinteger.li line #45

Section:
Public

Profile:
- SelfSELF% ' Left 100  other : SELFSELF

Infix '%#'

.../base/number/integer/uinteger.li line #47

Section:
Public

Profile:
- SelfSELF%# ' Left 100  other : INTEGERSELF

Infix '**'

.../base/number/integer/uinteger.li line #49

Section:
Public

Profile:
- SelfSELF** ' Right 120  exp : SELFSELF

pow

.../base/number/integer/uinteger.li line #64

Section:
Public

Profile:
- SelfSELFpow   exp : SELFSELF

Conversion format with test.

bound_test to

.../base/number/integer/uinteger.li line #73

Section:
Public

Profile:
- SelfSELFbound_test   low : INTEGER_64  to   up : UINTEGER_64BOOLEAN

- to_integer:INTEGER <- Self;

to_pointer

.../base/number/integer/uinteger.li line #80

Section:
Public

Profile:
- SelfSELFto_pointer : POINTER

BCD Format.

to_binary

.../base/number/integer/uinteger.li line #89

Section:
Public

Profile:
- SelfSELFto_binary : SELF

Description:
Self is BCD formatted, convert to binary value

to_bcd

.../base/number/integer/uinteger.li line #105

Section:
Public

Profile:
- SelfSELFto_bcd : SELF

Description:
Self is binary formatted, convert to bcd value

Facility typing.

kb

.../base/number/integer/uinteger.li line #124

Section:
Public

Profile:
- SelfSELFkb : SELF

Description:
Self in Kilobyte (ie. 1kb = 1024 bytes)

mb

.../base/number/integer/uinteger.li line #127

Section:
Public

Profile:
- SelfSELFmb : SELF

Description:
Self in megabytes

gb

.../base/number/integer/uinteger.li line #130

Section:
Public

Profile:
- SelfSELFgb : SELF

Description:
Self in gigabytes

tb

.../base/number/integer/uinteger.li line #133

Section:
Public

Profile:
- SelfSELFtb : SELF

Description:
Self in terabytes

Logic Operator

Infix '&'

.../base/number/integer/uinteger.li line #140

Section:
Public

Profile:
- SelfSELF& ' Left 100  other : SELFSELF

Description:
AND operator

Infix '|'

.../base/number/integer/uinteger.li line #143

Section:
Public

Profile:
- SelfSELF| ' Left 80  other : SELFSELF

Description:
OR operator

Infix '^'

.../base/number/integer/uinteger.li line #146

Section:
Public

Profile:
- SelfSELF^ ' Left 80  other : SELFSELF

Description:
XOR operator

Infix '>>'

.../base/number/integer/uinteger.li line #149

Section:
Public

Profile:
- SelfSELF>> ' Left 100  other : INTEGERSELF

Description:
Shift right

Infix '<<'

.../base/number/integer/uinteger.li line #152

Section:
Public

Profile:
- SelfSELF<< ' Left 100  other : INTEGERSELF

Description:
Shift left

Unary operator

Prefix '~'

.../base/number/integer/uinteger.li line #159

Section:
Public

Profile:
- ~ ' SelfSELFSELF

Description:
(-SELF.one) - Self;
Test.

align_power

.../base/number/integer/uinteger.li line #165

Section:
Public

Profile:
- SelfSELFalign_power   step : SELFSELF

is_power_2

.../base/number/integer/uinteger.li line #175

Section:
Public

Profile:
- SelfSELFis_power_2 : BOOLEAN

Description:
TRUE is Self is power of 2

Function :

sqrt

.../base/number/integer/uinteger.li line #194

Section:
Public

Profile:
- SelfSELFsqrt : SELF

Description:
Square root

Suffix '!'

.../base/number/integer/uinteger.li line #206

Section:
Public

Profile:
- SelfSELF! ' : SELF

Description:
Factorial. Use it like "45!;" or "bar!.print;"

factorial

.../base/number/integer/uinteger.li line #209

Section:
Public

Profile:
- SelfSELFfactorial : SELF

Description:
Factorial.

Require:
Self >= 0

fibonacci

.../base/number/integer/uinteger.li line #226

Section:
Public

Profile:
- SelfSELFfibonacci : SELF

Description:
Fibonacci

Require:
Self >= 0

is_odd

.../base/number/integer/uinteger.li line #242

Section:
Public

Profile:
- SelfSELFis_odd : BOOLEAN

Description:
Is odd ?

is_even

.../base/number/integer/uinteger.li line #244

Section:
Public

Profile:
- SelfSELFis_even : BOOLEAN

Description:
Is even ?

gcd

.../base/number/integer/uinteger.li line #246

Section:
Public

Profile:
- SelfSELFgcd   other : SELFSELF

Description:
Great Common Divisor of self and other.

Random

random

.../base/number/integer/uinteger.li line #270

Section:
Public

Profile:
- SelfSELFrandom : SELF

Description:
Random number between 0 to maximum in SELF.

random_upper

.../base/number/integer/uinteger.li line #280

Section:
Public

Profile:
- SelfSELFrandom_upper   upper : SELFSELF

Description:
Random number between 0 to upper.

random_between and

.../base/number/integer/uinteger.li line #292

Section:
Public

Profile:
- SelfSELFrandom_between   lower : SELF  and   upper : SELFSELF

Description:
Random number between lower to upper.

Looping.

times

.../base/number/integer/uinteger.li line #308

Section:
Public

Profile:
- SelfSELFtimes   action : BLOCK

Convertion
*French, Slot, Description : Renvoi une chaîne représentant le nombre en base 10 *English, Slot, Description : String of the number in base 10

to_string

.../base/number/integer/uinteger.li line #322

Section:
Public

Profile:
- SelfSELFto_string : STRING

Description:
Convert the decimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is -1.

See:
append_in to save memory.

append_in

.../base/number/integer/uinteger.li line #329

Section:
Public

Profile:
- SelfSELFappend_in   buffer : STRING

Description:
Append in the buffer the equivalent of to_string. No new STRING creation during the process. Append in the buffer the equivalent of to_string. No new STRING creation during the process.

decimal_digit

.../base/number/integer/uinteger.li line #333

Section:
Public

Profile:
- SelfSELFdecimal_digit : CHARACTER

Description:
Gives the corresponding CHARACTER for range 0..9.

digit

.../base/number/integer/uinteger.li line #346

Section:
Public

Profile:
- SelfSELFdigit : CHARACTER

hexadecimal_digit

.../base/number/integer/uinteger.li line #348

Section:
Public

Profile:
- SelfSELFhexadecimal_digit : CHARACTER

Description:
Gives the corresponding CHARACTER for range 0..15.

to_character

.../base/number/integer/uinteger.li line #366

Section:
Public

Profile:
- SelfSELFto_character : CHARACTER

Description:
Return the coresponding ASCII character.

to_octal

.../base/number/integer/uinteger.li line #369

Section:
Public

Profile:
- SelfSELFto_octal : SELF

Description:
Gives coresponding octal value.

to_hexadecimal

.../base/number/integer/uinteger.li line #377

Section:
Public

Profile:
- SelfSELFto_hexadecimal : STRING

Description:
Convert the hexadecimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is "FFFFFFFF" on a 32 bit machine.

See:
to_hexadecimal_in to save memory.

to_hexadecimal_format

.../base/number/integer/uinteger.li line #389

Section:
Public

Profile:
- SelfSELFto_hexadecimal_format   s : INTEGERSTRING

Description:
Convert the hexadecimal view of self into a new allocated STRING. For example, if self is -1 the new STRING is "FFFFFFFF" on a 32 bit machine.

See:
to_hexadecimal_in to save memory.

to_hexadecimal_in

.../base/number/integer/uinteger.li line #401

Section:
Public

Profile:
- SelfSELFto_hexadecimal_in   buffer : STRING

Description:
Append in buffer the equivalent of to_hexadecimal. No new STRING creation during the process.

to_hexadecimal_in format

.../base/number/integer/uinteger.li line #426

Section:
Public

Profile:
- SelfSELFto_hexadecimal_in   buffer : STRING  format   s : INTEGER

Description:
Append in buffer the equivalent of to_hexadecimal. No new STRING creation during the process.

to_binary_in format

.../base/number/integer/uinteger.li line #452

Section:
Public

Profile:
- SelfSELFto_binary_in   buffer : STRING  format   s : INTEGER

Description:
Append in buffer the equivalent of to_binary_string. No new STRING creation during the process.

Hashing:

hash_code

.../base/number/integer/uinteger.li line #482

Section:
Public

Profile:
- SelfSELFhash_code : INTEGER

Description:
BSBS: Il faut revoir => Depending processor
Print

print

.../base/number/integer/uinteger.li line #488

Section:
Public

Profile:
- SelfSELFprint 

Description:
Print

print_positif

.../base/number/integer/uinteger.li line #500

Section:
Public

Profile:
- SelfSELFprint_positif 

Description:
Display this number without memory.

print_hex

.../base/number/integer/uinteger.li line #514

Section:
Public

Profile:
- SelfSELFprint_hex 

Description:
Display this number without memory.

Debug manager facility.

Infix '?'

.../base/number/integer/uinteger.li line #531

Section:
Public

Profile:
- SelfSELF? '  blc : BLOCK

Detail slot

to_raw_pointer

.../base/number/integer/uinteger.li line #535

Section:
INTEGER

Profile:
- SelfSELFto_raw_pointer : POINTER