Iramount
digit grouping and conversion to formal spoken format for persian numbers
Install / Use
/learn @724/IramountREADME
repositories {
jcenter()
}
implementation 'io.github.the724:iramount:[latest-version]'
This library enables you to create formal Farsi spoken format for numbers that represent an amount in Rials (IRR).
To group digits by three, use
val amount = IrAmount(5511255) // we assume the number is in Rials!
val withDigitGrouping = amount.digitGrouped() // returns 5,511,255
To display Farsi spoken format in Rials (IRR), use
val amount = IrAmount(5511255) // we assume the number is in Rials!
val rialFormat = amount.farsiFormatRial() // returns پنج میلیون و پانصد و یازده هزار و دویست و پتجاه و پنج ریال
To display Farsi spoken format in Tomans, use
val amount = IrAmount(5511255) // we assume the number is in Rials!
val tomanFormat = amount.farsiFormatToman() // returns پانصد و پنجاه و یک هزار و صد و بیست و پنج تومان و پنج ریال
License
Copyright (C) 2019 Farhad Faghihi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
