mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-18 16:25:27 +02:00
fix: Add Hexadecimal as default NumberBase
Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
parent
084d66ac88
commit
1a2ae455c9
@ -37,6 +37,16 @@ sealed interface BasicUnit {
|
|||||||
|
|
||||||
interface NumberBase : BasicUnit {
|
interface NumberBase : BasicUnit {
|
||||||
fun convert(unitTo: NumberBase, value: String): String
|
fun convert(unitTo: NumberBase, value: String): String
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
val Hexadecimal = NumberBaseUnit(
|
||||||
|
"hexadecimal",
|
||||||
|
BigDecimal(16),
|
||||||
|
UnitGroup.NUMBER_BASE,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Default : BasicUnit {
|
interface Default : BasicUnit {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user