I have a custom tag used to display a specified number of decimal places
which I developed using CF 4.5.0 on an NT 4 sp4 machine.

The relevant code is below.

<!--- Create specified decimal places --->
<cfset Placement = 1>
<cfset NumPlaces = ''>
<cfloop index="x" from="1" to="#Attributes.Places#">
        <cfset Placement = Placement & '0'>
        <cfset NumPlaces = NumPlaces & '0'>
</cfloop>

<cfset Caller.NewNumber = NumberFormat(Int(Attributes.Number * (Placement) +
0.5 ) / Placement,'99999.#NumPlaces#')>


It works correctly on the development machine.

Output looks like:

Using Number 1:
        0 Places - 1
        1 Place - 1.0
        2 Places - 1.00

Using Number 0:
        0 Places - 0
        1 Place - 0.0
        2 Places - 0.00

However, when I moved the unencrypted file to the production machine which
is an W2k sp1 Cf 4.5.1 sp1 I get the following:

 Using Number 1:
        0 Places - 1
        1 Place - 1.0
        2 Places - 1.00

Using Number 0:
        0 Places - .
        1 Place - .0
        2 Places - .00

Why would this behaviour change?  Anyone have any clues whatsoever?

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to