specfile/slownie

该包已被废弃,不再维护。未建议替代包。

Slownie::printSpelledOut - 打印波兰语金额的拼写形式

v0.0.6 2019-09-04 13:11 UTC

This package is auto-updated.

Last update: 2023-08-04 22:13:02 UTC


README

名称

Slownie::printSpelledOut - 打印波兰语金额的拼写形式

概述

use SpecFile;

Slownie::printSpelledOut(number $amount) : string

描述

printSpelledOut 方法打印波兰语的金额拼写形式。

返回值

以字符串形式拼写的金额。

示例

Slownie::printSpelledOut(123) 返回 "sto dwadzieścia trzy złote 00/100",Slownie::printSpelledOut(1234.01) 返回 "tysiąc dwieście trzydzieści cztery złote 01/100"。

异常

NotANumberException - 如果金额不是数字。

错误

  • 仅以一种格式和一种语言拼写数字,
  • 使用整数或浮点数作为货币值会丢失精度,
  • 源代码可能不是PHP的规范表达,但已被 phpcbf --standard=PSR2 修复。