How to make <CFWDDX action="CFML2WDDX"...> generate numbers without ‘.0’ in the end?

Discussion in 'Programming' started by KellyLynch, Nov 3, 2010.

  1. #1
    I am using ColdFusion MX 7.
    When I use <CFWDDX action="CFML2WDDX"...> to convert a structure into WDDX, all numbers that are in fact INTEGER become DOUBLE ones in output WDDX. In other words, "1" in structure becomes <number>1.0</number> in the WDDX.

    Can I somehow avoid this - to have just <number>1</number> instead of <number>1.0</number> in the output WDDX?
     
    KellyLynch, Nov 3, 2010 IP