Home Manual Reference Source
import {IntegerRing} from '@aureooms/js-integer/src/IntegerRing.js'
public class | source

IntegerRing

You can directly use an instance of this class. ZZ

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

name: *

Private Members
private

_base: *

Method Summary

Public Methods
public

$0(): *

public

$1(): *

public

$_1(): *

public
public

from(object: *, base: *, is_negative: number): *

public

from_digits(digits: *, base: *, is_negative: *): *

public

from_number(number: *, is_negative: number): *

public

from_string(string: *, base: number, is_negative: number): *

public

has(x: *): *

public

max(a: *, b: *): *

public

min(a: *, b: *): *

public

toString(): *

Public Constructors

public constructor() source

Public Members

public name: * source

Private Members

private _base: * source

Public Methods

public $0(): * source

Return:

*

public $1(): * source

Return:

*

public $_1(): * source

Return:

*

public characteristic(): * source

Return:

*

public from(object: *, base: *, is_negative: number): * source

Params:

NameTypeAttributeDescription
object *
base *
  • optional
  • default: undefined
is_negative number
  • optional
  • default: 0

Return:

*

public from_digits(digits: *, base: *, is_negative: *): * source

Params:

NameTypeAttributeDescription
digits *
base *
is_negative *

Return:

*

public from_number(number: *, is_negative: number): * source

Params:

NameTypeAttributeDescription
number *
is_negative number
  • optional
  • default: 0

Return:

*

public from_string(string: *, base: number, is_negative: number): * source

Params:

NameTypeAttributeDescription
string *
base number
  • optional
  • default: 10
is_negative number
  • optional
  • default: 0

Return:

*

public has(x: *): * source

Params:

NameTypeAttributeDescription
x *

Return:

*

public max(a: *, b: *): * source

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public min(a: *, b: *): * source

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public toString(): * source

Return:

*