mendraw/mendix/decimal

Types

pub type Decimal

Values

pub fn from_float(f: Float) -> Decimal

부동소수점으로 Decimal 생성 (정밀도 손실 주의)

pub fn from_int(n: Int) -> Decimal

정수로 Decimal 생성

pub fn from_string(s: String) -> Decimal

문자열로 Decimal 생성

pub fn to_fixed(d: Decimal, dp: Int) -> String

고정 소수점 문자열 (소수점 이하 dp자리)

pub fn to_float(d: Decimal) -> Float

Float로 변환 (정밀도 손실 가능)

pub fn to_int(d: Decimal) -> Int

Int로 변환 (소수점 이하 버림)

pub fn to_string(d: Decimal) -> String

문자열로 변환

Search Document