Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: serializeJSON is converting ints to floats

$
0
0

Also found out that a simple addition operation creates a float:

 

<cfset r["z"] = 1 + 2> will output 3.0

 

Workaround:

 

<cfset r.x = javaCast("int", Val("1"))>

<cfset r.y = javaCast("int", ceiling(100/10))>


 

 



Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>