You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhishifufei_php/vendor/phpoffice/math/docs/usage/elements/numeric.md

504 B

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

3

XML

<math display="block">
  <mn>3</mn>
</math>

PHP

<?php

use PhpOffice\Math\Element;
use PhpOffice\Math\Math;

$math = new Math();

$identifier = new Element\Numeric(3);

$math->add($identifier);