This commit is contained in:
wangjinlei
2024-07-17 09:23:45 +08:00
parent edf9deeb1a
commit 881ac3e056
1001 changed files with 41032 additions and 5452 deletions

View File

@@ -0,0 +1,43 @@
## Usage
To create a numeric, use the `PhpOffice\Math\Element\Numeric` class.
### Methods
#### getValue
The method has no parameter.
#### setValue
The method has one parameter :
* `float` **$value**
## Example
### Math
<math display="block">
<mn>3</mn>
</math>
### XML
``` xml
<math display="block">
<mn>3</mn>
</math>
```
### PHP
``` php
<?php
use PhpOffice\Math\Element;
use PhpOffice\Math\Math;
$math = new Math();
$identifier = new Element\Numeric(3);
$math->add($identifier);
```