Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Big Decimal to Float

Hello,

 

I am trying to convert a big decimal to float but keep running into errors.  I have tried the following and it will not work.  I get can't convert big decimal to float.  Any suggestions?

 

 
row3.BigDecimalField__c != null ? row3.BigDecimalField__c.doubleValue() : null

 

Labels (2)
2 Replies
nfz11
Creator III
Creator III

What is the error you are getting?  What is your input data?

 

Doubles are slightly different than floats in Java.  You can just use double all the time safely.

manodwhb
Champion II
Champion II

@steeld95 ,the expression you were trying is to convert to double,if you want to convert to float use the below way.

 

row3.BigDecimalField__c != null ? row3.BigDecimalField__c.floatValue() : null