Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Pdf
Element
Numeric.php
Go to the documentation of this file.
1
<?php
24
#require_once 'Zend/Pdf/Element.php';
25
26
35
class
Zend_Pdf_Element_Numeric
extends
Zend_Pdf_Element
36
{
42
public
$value
;
43
44
51
public
function
__construct
($val)
52
{
53
if
( !is_numeric($val) ) {
54
#require_once 'Zend/Pdf/Exception.php';
55
throw
new
Zend_Pdf_Exception
(
'Argument must be numeric'
);
56
}
57
58
$this->
value
= $val;
59
}
60
61
67
public
function
getType
()
68
{
69
return
Zend_Pdf_Element::TYPE_NUMERIC
;
70
}
71
72
79
public
function
toString
(
$factory
=
null
)
80
{
81
if
(is_integer($this->
value
)) {
82
return
(
string
)
$this->value
;
83
}
84
89
$prec = 0; $v =
$this->value
;
90
while
(abs( floor($v) - $v ) > 1e-10) {
91
$prec++; $v *= 10;
92
}
93
return
sprintf(
"%.{$prec}F"
, $this->
value
);
94
}
95
}
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Zend_Pdf_Element\TYPE_NUMERIC
const TYPE_NUMERIC
Definition:
Element.php:33
Zend_Pdf_Element_Numeric\__construct
__construct($val)
Definition:
Numeric.php:51
Zend_Pdf_Element_Numeric\$value
$value
Definition:
Numeric.php:42
Zend_Pdf_Element
Definition:
Element.php:30
Zend_Pdf_Element_Numeric
Definition:
Numeric.php:35
Zend_Pdf_Element_Numeric\getType
getType()
Definition:
Numeric.php:67
$factory
$factory
Definition:
category_multiple_stores.php:10
Zend_Pdf_Element_Numeric\toString
toString($factory=null)
Definition:
Numeric.php:79
Zend_Pdf_Exception
Definition:
Exception.php:51