# Cocoa datCurrency Error on post

**URL:** https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989
**Category:** Data Abstract
**Tags:** xcode
**Created:** [January 21, 2021, 9:28am UTC](https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989 "2021-01-21T09:28:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jasonli](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jasonli/32/612_2.png) [@jasonli](https://talk.remobjects.com/u/jasonli)
#### Post date: [January 21, 2021, 9:28am UTC](https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989/1 "2021-01-21T09:28:31Z")

</div>

Dear All,  
When I using DADatatableController with binding to a NSString. with datCurrency Field when I apply to remove server (custom Delphi server) Xcode raised error as:  
**[General] -[\_\_NSCFNumber decimalNumberByMultiplyingByPowerOf10:]: unrecognized selector sent to instance 0x600000da49a0**…  
but if I change it to datDecimal it works fine,  
that means should I change all currency fields to decimal?

---

<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: [January 21, 2021, 6:27pm UTC](https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989/3 "2021-01-21T18:27:27Z")

</div>

Jason,

I’m looking at the code now, and this method is used for Currency type fields and parameters, which, on Cocoa, use the `NSDecimalNumber` class to represent their value. Where does the value you are storing come from? could it be that you are accidentally putting an `NSNumber` type into the field?

---

<div class="post-metadata">

### Author: ![jasonli](https://talk.remobjects.com/user_avatar/talk.remobjects.com/jasonli/32/612_2.png) [@jasonli](https://talk.remobjects.com/u/jasonli)
#### Post date: [January 22, 2021, 12:12pm UTC](https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989/4 "2021-01-22T12:12:09Z")

</div>

I was using money field type on ms sql server, now I had modified to decimal type it works fine. but just want to know if you will fix this problem later…  
thanks!

---

<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: [January 22, 2021, 12:28pm UTC](https://talk.remobjects.com/t/cocoa-datcurrency-error-on-post/23989/5 "2021-01-22T12:28:56Z")

</div>

> [@jasonli](#):
>
> I was using money field type on ms sql server, now I had modified to decimal type it works fine. but just want to know if you will fix this problem later…

Well, right now I don’t know what the problem is ;). how do you fill the value the it fails on? can I see a tetscase?

The error you describe is _expected_ if you out the wrong kind of value init the field.
