本文簡要介紹ruby語言中 BigDecimal.===
的用法。
用法
===(p1)
別名:==
值平等測試;如果值相等,則返回 true。
== 和 === 運算符和 eql?方法對 BigDecimal
具有相同的實現。
值可能會被強製執行比較:
BigDecimal('1.0') == 1.0 #=> true
相關用法
- Ruby BigDecimal.==用法及代碼示例
- Ruby BigDecimal.self >用法及代碼示例
- Ruby BigDecimal.self >=用法及代碼示例
- Ruby BigDecimal.floor用法及代碼示例
- Ruby BigDecimal.to_s用法及代碼示例
- Ruby BigDecimal.to_d用法及代碼示例
- Ruby BigDecimal.save_rounding_mode用法及代碼示例
- Ruby BigDecimal.to_digits用法及代碼示例
- Ruby BigDecimal.add用法及代碼示例
- Ruby BigDecimal.save_exception_mode用法及代碼示例
- Ruby BigDecimal.ceil用法及代碼示例
- Ruby BigDecimal.scale用法及代碼示例
- Ruby BigDecimal.truncate用法及代碼示例
- Ruby BigDecimal._dump用法及代碼示例
- Ruby BigDecimal.round用法及代碼示例
- Ruby BigDecimal.n_significant_digits用法及代碼示例
- Ruby BigDecimal.inspect用法及代碼示例
- Ruby BigDecimal.double_fig用法及代碼示例
- Ruby BigDecimal.self - value用法及代碼示例
- Ruby BigDecimal.precision用法及代碼示例
- Ruby BigDecimal.split用法及代碼示例
- Ruby BigDecimal.mode用法及代碼示例
- Ruby BigDecimal.sub用法及代碼示例
- Ruby BigDecimal.coerce用法及代碼示例
- Ruby BigDecimal.-self用法及代碼示例
注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 BigDecimal.===。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。