Skip to content

Commit

Permalink
Show API including methods [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 8, 2015
1 parent 7ed8acb commit 4dd7669
Showing 1 changed file with 49 additions and 7 deletions.
56 changes: 49 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,56 @@ Math

Big number handling

API
---
API: BigInt
-----------

```php
@FileSystemCL<...\xp\math\src\test\php\>
package math {
public abstract class math.BigNum
public class math.BigFloat
public class math.BigInt
public class math.BigInt extends math.BigNum {

public math.BigInt __construct(string $in)

protected static string bytesOf(var $n)

public math.BigNum add(var $other)
public math.BigNum subtract(var $other)
public math.BigNum multiply(var $other)
public math.BigNum divide(var $other)
public math.BigNum add0(var $other)
public math.BigNum subtract0(var $other)
public math.BigNum multiply0(var $other)
public math.BigNum divide0(var $other)
public math.BigNum power(var $other)
public math.BigNum modulo(var $other)
public math.BigNum bitwiseAnd(var $other)
public math.BigNum bitwiseOr(var $other)
public math.BigNum bitwiseXor(var $other)
public math.BigNum shiftRight(var $shift)
public math.BigNum shiftLeft(var $shift)
public int byteValue()
public int intValue()
public int doubleValue()
}
```

API: BigFloat
-------------

```php
public class math.BigFloat extends math.BigNum {
protected var math.BigNum::$num

public math.BigFloat __construct(string $in)

public math.BigNum add(var $other)
public math.BigNum subtract(var $other)
public math.BigNum multiply(var $other)
public math.BigNum divide(var $other)
public math.BigNum power(var $other)
public math.BigFloat ceil()
public math.BigFloat floor()
public math.BigFloat round([int $precision= 0])
public bool equals(lang.Generic $cmp)
public int intValue()
public int doubleValue()
}
```

0 comments on commit 4dd7669

Please sign in to comment.