faq

来自「php-4.4.7学习linux时下载的源代码」· 代码 · 共 22 行

TXT
22
字号
BCMATH FAQ: 1) Why BCMATH?The math routines of GNU bc become more generally useful in alibrary form.  By separating the BCMATH library from GNU bc,GNU bc can be under the GPL and BCMATH can be under the LGPL.2) Why BCMATH when GMP exists?GMP has "integers" (no digits after a decimal), "rational numbers"(stored as 2 integers) and "floats".  None of these will correctlyrepresent a POSIX BC number.  Floats are the closest, but will notbehave correctly for many computations.  For example, BC numbers havea "scale" that represent the number of digits to represent after thedecimal point.  The multiplying two of these numbers requires one tocalculate an exact number of digits after the decimal point regardlessof the number of digits in the integer part.  GMP floats have a"fixed, but arbitrary" mantissa and so multiplying two floats will endup dropping digits BC must calculate.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?