# Is there a currency type in sugar?

**URL:** https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783
**Category:** Elements RTL
**Created:** [December 23, 2015, 11:07pm UTC](https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783 "2015-12-23T23:07:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![landrix](https://talk.remobjects.com/user_avatar/talk.remobjects.com/landrix/32/9881_2.png) [@landrix](https://talk.remobjects.com/u/landrix)
#### Post date: [December 23, 2015, 11:07pm UTC](https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783/1 "2015-12-23T23:07:05Z")

</div>

Is there a currency type in sugar?

---

<div class="post-metadata">

### Author: ![jensw\_2000](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jensw_2000/32/159_2.png) [@jensw\_2000](https://talk.remobjects.com/u/jensw_2000)
#### Post date: [December 24, 2015, 10:38am UTC](https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783/2 "2015-12-24T10:38:47Z")

</div>

No. [https://github.com/remobjects/sugar/search?utf8=✓&q=currency](https://github.com/remobjects/sugar/search?utf8=%E2%9C%93&q=currency)  
"Decimal" should work on all platforms.

---

<div class="post-metadata">

### Author: ![landrix](https://talk.remobjects.com/user_avatar/talk.remobjects.com/landrix/32/9881_2.png) [@landrix](https://talk.remobjects.com/u/landrix)
#### Post date: [December 26, 2015, 10:03pm UTC](https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783/3 "2015-12-26T22:03:22Z")

</div>

my suggestion would be:

Currency = public {$IF COOPER}class mapped to java.math.BigDecimal{$ELSEIF ECHOES}record mapped to System.Decimal{$ELSEIF NOUGAT}class mapped to NSDecimalNumber{$ENDIF}  
end;

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 27, 2015, 2:47pm UTC](https://talk.remobjects.com/t/is-there-a-currency-type-in-sugar/7783/4 "2015-12-27T14:47:59Z")

</div>

Looking forward to your pull request. 😉
