c

Util.BigInteger 

final class BigInteger extends AnyVal with Any.Datum.BigInteger[Util.BigInteger]

Big Integer

BigInteger is used for really large integer calculations

val Max = 58.I.repeat(35).foldAs(1.Big)(_ * _)

"Largest Bitcoin address= " + Max + ", digits=" + Max.toString.length + "\n" lp;

val TenB = 10.Big * 1000 * 1000 * 1000
val YearSecs = 60.Big * 60 * 24 * 365

"Suppose, there is 10 billion computers in the world capable counting 10 billion numbers a second each\n" lp;
"  Together they will count " + (TenB * TenB) + " a second\n" lp;
"  Together they will count " + (TenB * TenB * YearSecs) + " a year\n" lp;
"  Together they will count " + (TenB * TenB * YearSecs * TenB) + " in 10 billions years - the 'Age of Universe'\n" lp;
"It is required "   +   (Max / ((TenB * TenB * YearSecs * TenB))) + " 'Ages of Universe'" lp;
"for all todays computers together to just simply count all Bitcoin adresses" lp;

// Output ****************************************************************************************************************

Suppose, there is 10 billion computers in the world capable counting 10 billion numbers a second each

Together they will count 100000000000000000000 a second

Together they will count 3153600000000000000000000000 a year

Together they will count 31536000000000000000000000000000000000 in 10 billions years - the 'Age of Universe'

It is required 1664076041000527808478341 'Ages of Universe'
for all todays computers together to just simply count all Bitcoin adresses
Ordering
1. Alphabetic
Inherited
1. BigInteger
2. Any.Datum.BigInteger
3. Custom.Number.Like
4. Any.Datum.BigInteger._use
5. Any.Datum.Z.Number.Use
6. Any.Datum.BigInteger._convert
7. Any.Datum.Z.Number.Convert
8. Any.Datum.BigInteger._compare
9. Any.Datum.Z.Number.Compare
10. scala.math.Ordered
11. java.lang.Comparable
12. Any.Datum.Comparable
13. Any.Datum.Ref
14. Any.Datum
15. Any.Wrap
16. scala.AnyVal
17. scala.Any
1. Hide All
2. Show All
Visibility
1. Public
2. All

Constant

1. val real: java.math.BigInteger
Definition Classes
BigInteger_convert_Trait

Method

1. def abs
Definition Classes
_use
2. def apply(v: Percent)
Definition Classes
_use
3. final def asInstanceOf[T0]: T0
Definition Classes
Any
4. def compare(): Int
Definition Classes
_compare → Ordered
5. def compareTo(that: BigInteger): Int
Definition Classes
Ordered → Comparable
6. final def isInstanceOf[T0]: Boolean
Definition Classes
Any
7. def make(v: java.math.BigInteger)
Attributes
protected
Definition Classes
_Trait_Trait
8. def max()
Definition Classes
_compare
9. def min()
Definition Classes
_compare
10. def realNumber: java.math.BigInteger
Attributes
protected
Definition Classes
_TraitLike
11. def round(scale: Int, )

Round value

Round value

Negative scale specifies number of rounding digits before the period

Positive scale specifies number of rounding digits after the period

Note. Positive scale does not make sense if this is integral value

By default the rounding is done "half up'

Definition Classes
_use → Use
12. def setup: BigInteger.type
Attributes
protected
Definition Classes
BigInteger_Trait_Trait_Trait
13. def signum: Int

Sign function

Sign function

Returns -1 if this < 0

Returns 0 if this == 0

Returns 1 if this > 0 *

Definition Classes
_use → Use
14. def toBig
Definition Classes
_convert
15. def toByte: Byte

Convert to Byte

Convert to Byte

Returns the value of this as Byte

Definition Classes
_convert → Convert
16. def toDouble: Double

Convert to Double

Convert to Double

Returns the value of this as Double

Definition Classes
_convert → Convert
17. def toFloat: Float
Definition Classes
_convert → Convert
18. def toInt: Int

Convert to Int

Convert to Int

Returns the value of this as Int

Definition Classes
_convert → Convert
19. def toLong: Long

Convert to Long

Convert to Long

Returns the value of this as Long

Definition Classes
_convert → Convert
20. def toNumber: java.math.BigInteger

Convert to Number

Convert to Number

Returns the value of this as java.lang.Number

Definition Classes
_convert → Convert
21. def toShort: Short

Convert to Short

Convert to Short

Returns the value of this as Short

Definition Classes
_convert → Convert
22. def toString(): String
Definition Classes
BigInteger → Any

Operator

1. def unary_-

Negate

Negate

Returns a new value, which is negated this

Definition Classes
_use → Use
2. def !=(v: Double): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
3. def !=(v: Float): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
4. def !=(v: Long): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
5. def !=(v: Int): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
6. def !=(v: Short): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
7. def !=(v: Byte): Boolean

Not equals test

Not equals test

Returns true if this is not equal to v, false otherwise

Definition Classes
_compare → Compare
8. final def !=(arg0: Any): Boolean
Definition Classes
Any
9. final def ##(): Int
Definition Classes
Any
10. def %(v: Long)
Definition Classes
_use
11. def %()

Remainder

Remainder

Returns a new value, which is remainder of this divided by v

Definition Classes
_use → Use
12. def %@(v: Double)
Definition Classes
_use
13. def %@()

Percent At

Percent At

Returns percentage of this compared to v

Definition Classes
_use → Use
14. def *(v: Long)
Definition Classes
_use
15. def *()

Multiply by

Multiply by

Returns a new value, which is this value multiplied by v

Definition Classes
_use → Use
16. def +(v: Percent, V: \/ = \/)
Definition Classes
_use
17. def +(v: Long)
Definition Classes
_use
18. def +()
Definition Classes
_use
19. def -(v: Percent, V: \/ = \/)
Definition Classes
_use
20. def -(v: Long)
Definition Classes
_use
21. def -()
Definition Classes
_use
22. def /(v: Long)
Definition Classes
_use
23. def /()

Divide by

Divide by

Returns a new value, which is this value divided by v

Definition Classes
_use → Use
24. def <(v: Double): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
25. def <(v: Float): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
26. def <(v: Long): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
27. def <(v: Int): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
28. def <(v: Short): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
29. def <(v: Byte): Boolean

Is less test

Is less test

Returns true if this is less than v, false otherwise

Definition Classes
_compare → Compare
30. def <(that: BigInteger): Boolean
Definition Classes
Ordered
31. def <=(v: Double): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
32. def <=(v: Float): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
33. def <=(v: Long): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
34. def <=(v: Int): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
35. def <=(v: Short): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
36. def <=(v: Byte): Boolean

Is less or equal test

Is less or equal test

Returns true if this is less or equal to v, false otherwise

Definition Classes
_compare → Compare
37. def <=(that: BigInteger): Boolean
Definition Classes
Ordered
38. def ==(v: Double): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
39. def ==(v: Float): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
40. def ==(v: Long): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
41. def ==(v: Int): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
42. def ==(v: Short): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
43. def ==(v: Byte): Boolean

Equals test

Equals test

Returns true if this is equal to v, false otherwise

Definition Classes
_compare → Compare
44. final def ==(arg0: Any): Boolean
Definition Classes
Any
45. def >(v: Double): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
46. def >(v: Float): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
47. def >(v: Long): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
48. def >(v: Int): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
49. def >(v: Short): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
50. def >(v: Byte): Boolean

Is greater test

Is greater test

Returns true if this is greater than v, false otherwise

Definition Classes
_compare → Compare
51. def >(that: BigInteger): Boolean
Definition Classes
Ordered
52. def >=(v: Double): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
53. def >=(v: Float): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
54. def >=(v: Long): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
55. def >=(v: Int): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
56. def >=(v: Short): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
57. def >=(v: Byte): Boolean

Is greater or equal test

Is greater or equal test

Returns true if this is greater or equal to v, false otherwise

Definition Classes
_compare → Compare
58. def >=(that: BigInteger): Boolean
Definition Classes
Ordered