teknologi-umum / manusier Goto Github PK
View Code? Open in Web Editor NEWUtilities for manipulating & displaying string, number, dates, and quantities localized for Indonesia
License: MIT License
Utilities for manipulating & displaying string, number, dates, and quantities localized for Indonesia
License: MIT License
I think this seems to be able to add features of times of day, months, and week
example
besok lusa or kemarin lusa or minggu depan
I see no double data type
example :
1209.74
-> seribu dua ratus sembilan koma tujuh puluh empat
This issue is meant to be the discussion for the project specification. Put a issue comment if you have any idea of what to implement.
FormatRupiah(int n, int limit)
Formats a given integer to a locally formatted Rupiah string. Might also have a limit argument, so instead of Rp1.000.000,00
, it would print out Rp1M
or Rp1mio
.
Sample input -> output:
FormatRupiah(1_000_000)
-> Rp1.000.000,00
FormatRupiah(-1_000_000)
-> (Rp1.000.000)
Implementation done on:
Terbilang(int n)
Converts a given integer to words
Sample input -> output
Terbilang(123_456)
-> seratus dua puluh tiga ribu empat ratus lima puluh enam
Terbilang(-123_456)
-> minus seratus dua puluh tiga ribu empat ratus lima puluh enam
Terbilang(0)
-> nol
Implementation done on:
Diskon(int nominal, UnitDiskon unit, int amount, int x, int y, int z)
Add a discount to the given integer with the specified amount and unit and returns an integer. Where UnitDiskon is an enum of MinPurchaseOfX
, PercentOfX
, MinXMaxY
.
Sample input -> output
Diskon(50_000, UnitDiskon.PercentOfX, 10)
-> 45000
Diskon(50_000, UnitDiskon.MinimumPembelianX, 10_000, 3, 5)
-> 40000
Diskon(50_000, UnitDiskon.MinXMaxY, 10_000, 5, 90, 6)
-> 40000
Implementation done on:
DurasiSejak(date d)
Returns a string in which says "2 hari yang lalu"
, "2 jam lalu"
. Might even have a limit argument like FormatRupiah()
, so it would print out "2j lalu"
instead of "2 jam lalu"
.
Implementation done on:
DurasiMenuju(date d)
Like DurasiSejak()
but returns the reverse of that: "2 hari kedepan"
, "2 jam kedepan"
.
Implementation done on:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.