brob-class: Class "brob"

Description Objects from the Class Slots Extends Note Author(s) See Also Examples

Description

The formal S4 class for Brobdingnagian numbers

Objects from the Class

Objects can be created by calls of the form new("brob", ...) but this is not encouraged. Use functions brob() and, especially, as.brob() instead.

Slots

x:

Object of class "numeric" holding the log of the absolute value of the number to be represented

positive:

Object of class "logical" indicating whether the number is positive (see Note, below)

Extends

Class "swift", directly.

Note

Slot positive indicates non-negativity, as zero is conventionally considered to be “positive”.

Author(s)

Robin K. S. Hankin

See Also

glub-class,swift-class

Examples

1
2
3
new("brob",x=5,positive=TRUE)  # not intended for the user

as.brob(5)  # Standard user-oriented idiom

Brobdingnag documentation built on May 2, 2019, 8:46 a.m.