9 <meta name=
"viewport" content=
"width=1200, initial-scale=0.5">
11 <meta http-equiv=
"Content-Location" content=
"/v0.0/ion/Decimal">
12 <link rel=
"stylesheet" href=
"index.css">
14 <link href=
"https://fonts.googleapis.com/css?family=Inconsolata&subset=latin-ext" rel=
"stylesheet">
15 <script src=
"//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
16 <link rel=
"shortcut icon" href=
"/v0.0/favicon.ico">
24 <a href=
"./ion/Decimal">Edit
</a>
29 <li>↰ <a href=
"./">Home
</a>
34 ↑ <a href=
"./ion">
40 ↻ <strong><a href=
"./ion/Decimal">Decimal
</a></strong>
46 ↳ <a href=
"./ion/Decimal/Context">Context
</a>
50 <li>↳ <a href=
"./ion/Decimal/Context/Dec128">Dec128
</a>
53 <li>↳ <a href=
"./ion/Decimal/Context/Dec32">Dec32
</a>
56 <li>↳ <a href=
"./ion/Decimal/Context/Dec64">Dec64
</a>
59 <li>↳ <a href=
"./ion/Decimal/Context/DecMax">DecMax
</a>
62 <li>↳ <a href=
"./ion/Decimal/Context/Rounding">Rounding
</a>
70 ↳ <a href=
"./ion/Decimal/__construct">Decimal::__construct
</a>
75 ↳ <a href=
"./ion/Decimal/equals">Decimal::equals
</a>
80 ↳ <a href=
"./ion/Decimal/isInt">Decimal::isInt
</a>
85 ↳ <a href=
"./ion/Decimal/toInt">Decimal::toInt
</a>
90 ↳ <a href=
"./ion/Decimal/toString">Decimal::toString
</a>
99 <li>↲ <a href=
"./ion/: Contributing">★ Contributing
</a></li>
101 <li>↲ <a href=
"./ion/: Security">★ Security
</a></li>
103 <li>↲ <a href=
"./ion/Catalog">Catalog
</a></li>
105 <li>↲ <a href=
"./ion/Exception">Exception
</a></li>
107 <li>↲ <a href=
"./ion/LOB">LOB
</a></li>
109 <li>↲ <a href=
"./ion/Reader">Reader
</a></li>
111 <li>↲ <a href=
"./ion/Serializer">Serializer
</a></li>
113 <li>↲ <a href=
"./ion/Symbol">Symbol
</a></li>
115 <li>↲ <a href=
"./ion/Timestamp">Timestamp
</a></li>
117 <li>↲ <a href=
"./ion/Type">Type
</a></li>
119 <li>↲ <a href=
"./ion/Unserializer">Unserializer
</a></li>
121 <li>↲ <a href=
"./ion/Writer">Writer
</a></li>
123 <li>↲ <a href=
"./ion/serialize">serialize
</a></li>
125 <li>↲ <a href=
"./ion/unserialize">unserialize
</a></li>
134 <h1>class ion\Decimal implements Stringable
</h1>
135 <p>An arbitrary precision fixed point decimal.
</p>
136 <p>See also \ion\Decimal\Context, and
<a href=
"https://amzn.github.io/ion-docs/docs/decimal.html">the ION spec's decimal docs
</a>.
</p>
137 <h2>Constants:
<a id=
"Constants:" href=
"#Constants:" class=
"permalink" aria-hidden=
"true" title=
"">#
</a></h2>
139 <h2>Properties:
<a id=
"Properties:" href=
"#Properties:" class=
"permalink" aria-hidden=
"true" title=
"">#
</a></h2>
141 <li>public string|int $number
<br />
142 The decimal number.
</li>
143 <li>public ?ion\Decimal\Context $context = NULL
<br />
144 The decimal context.
</li>
149 <h2 id=
"Functions:">Functions:
</h2>
153 <h3><a href=
"ion/Decimal/__construct">Decimal::__construct
</a></h3>
154 <p>Create a new fixed point decimal.
</p>
156 <p>void ion\Decimal::__construct(string|int $number, [?ion\Decimal\Context $context = NULL])
</p>
160 <h3><a href=
"ion/Decimal/equals">Decimal::equals
</a></h3>
161 <p>Check two decimals for equality.
</p>
163 <p>bool ion\Decimal::equals(ion\Decimal $decimal)
</p>
167 <h3><a href=
"ion/Decimal/isInt">Decimal::isInt
</a></h3>
168 <p>Check whether the decimal is actually a big integer.
</p>
170 <p>bool ion\Decimal::isInt()
</p>
174 <h3><a href=
"ion/Decimal/toInt">Decimal::toInt
</a></h3>
175 <p>Get the integer represention of the decimal.
</p>
177 <p>int ion\Decimal::toInt()
</p>
181 <h3><a href=
"ion/Decimal/toString">Decimal::toString
</a></h3>
182 <p>Get the string representation of the decimal.
</p>
184 <p>string ion\Decimal::toString()
</p>
190 <h2 id=
"Namespaces,.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:
</h2>
194 <h3><a href=
"ion/Decimal/Context">Context
</a></h3>
195 <p>An ion\Decimal's context.
</p>
197 <p>class ion\Decimal\Context
</p>
202 <div id=
"disqus_thread"><button id=
"disqus_activator">Show
<span> </span> Comment(s)
</button></div>
204 var disqus_shortname = 'mdref';
205 var disqus_identifier = 'ion/Decimal';
211 <li><a href=
"https://github.com/m6w6/mdref">mdref-v2.0
213 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
220 <script src=
"index.js"></script>