You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 27, 2023. It is now read-only.
Litipk PHP BigNumbers supports PHP 5.3.x, 5.4.x, 5.5.x, and 5.6.,x
21
-
but also Facebook's [HHVM](http://www.hhvm.com).
22
-
23
-
## Install Instructions
19
+
## Getting started
24
20
25
21
You can install this library using [Composer](http://getcomposer.org/).
26
22
@@ -35,82 +31,18 @@ composer.json file the following text:
35
31
}
36
32
```
37
33
38
-
## Basic Usage
39
-
40
-
```php
41
-
<?php
42
-
43
-
use \Litipk\BigNumbers\Decimal as Decimal;
44
-
45
-
/**
46
-
* There are many ways to create Decimal objects.
47
-
*
48
-
* We can use the following methods:
49
-
*
50
-
* Decimal::fromInteger
51
-
* Decimal::fromFloat
52
-
* Decimal::fromString
53
-
* Decimal::fromDecimal
54
-
*
55
-
* Decimal::create // this method works as methods fromType, but is more flexible
56
-
*/
57
-
58
-
$ten = Decimal::fromInteger(10);
59
-
$two = Decimal::fromString('2.0');
34
+
## Learn more
60
35
61
-
/**
62
-
* At this moment there are few binary operators
63
-
* that we can use with Decimal objects:
64
-
*
65
-
* $d1->add($d2);
66
-
* $d1->sub($d2);
67
-
* $d1->mul($d2);
68
-
* $d1->div($d2);
69
-
*/
36
+
*[Project Documentation](https://github.com/Litipk/php-bignumbers/wiki) : Here you can find how to use Litipk\BigNumbers in your applications.
37
+
*[Chat Room](https://gitter.im/Litipk/php-bignumbers) : If you want to have a real-time chat with other Litipk\BigNumbers users or developers, you can do it here.
38
+
*[Group / Mail List](https://groups.io/org/groupsio/php-bignumbers) : If a chat room isn't enough to post your doubts or ideas, you can join to our mail list.
70
39
71
-
$twenty = $ten->mul($two);
72
-
$forty = $two->mul(Decimal::fromFloat(20.));
40
+
## How to contribute
73
41
74
-
/**
75
-
* There are many unary operators too:
76
-
*
77
-
* $d1->abs();
78
-
* $d1->sqrt();
79
-
* $d1->log10();
80
-
* $d1->round($scale);
81
-
* $d1->additiveInverse();
82
-
*/
42
+
* First of all, you can take a look on the [bugtracker](https://github.com/Litipk/php-bignumbers/issues) and decide if there is something that you want to do :wink: . If you think there are missing improvements in this file, then you are invited to modify the TODO list.
43
+
* You can also send us bug reports using the same bugtracker.
44
+
* If you are really interested on helping to improve Litipk\BigNumbers, we recommend to read the [contributing guidelines](https://github.com/Litipk/php-bignumbers/blob/master/CONTRIBUTING.md).
0 commit comments