GUnit

class GUnit(verdi: BigDecimal) : Comparable<GUnit>

Representerer et beløp som faktor av antall G for en tidsuavhengig representasjon av beløp som skal G-justeres.

Constructors

Link copied to clipboard
constructor(intVerdi: Int)
constructor(stringVerdi: String)
constructor(verdi: BigDecimal)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Begrenser beløpet til 6G, det samme som min(beløp, 6G).

Link copied to clipboard
open operator override fun compareTo(other: GUnit): Int
Link copied to clipboard
fun dividert(nevner: Int): GUnit
fun dividert(nevner: Prosent): GUnit
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun multiplisert(faktor: Int): GUnit
fun multiplisert(faktor: Beløp): Beløp
fun multiplisert(faktor: Prosent): GUnit
Link copied to clipboard
fun pluss(addend: GUnit): GUnit
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard