Home Grails String to BigDecimal
Reply: 0

Grails String to BigDecimal

user299
1#
user299 Published in July 16, 2018, 6:17 am

I can't figure out how to transform a String into a BigDecimal inside a Grails Application.

I'm doing:

person.salary = params.number

But I got a error.

*salary is a BigDecimal and params.number is always a string.
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.316709 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO