I would, but can't seem to access/recover my account at 
https://www.aparajitaworld.com/tracker/login_page.php

MV

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Aparajita Fishman
Sent: Thursday, January 31, 2013 6:37 PM
To: Active4D Developer Discussion List
Subject: Re: [Active4d-dev] Round error in Active4D

Report it as a bug, I'll fix it in v6.1.

On Feb 1, 2013, at 12:23 AM, Mike Vogt <[email protected]> wrote:

> Hi All,
> Can anyone else reproduce this?
> 
> I'm getting incorrect results when doing the following in an Active4D script:
> 
> $cost:=50
> $rate:=18.15
> $fee:= $cost*$rate/100
> $fee_rounded:=Round($fee;2)
> 
> When I do this and display it in an page, $fee is 9.075, and $fee_rounded is 
> 9.07.
> 
> If I create a function in 4D:
> 
> //Function test_round:
> 
>  C_real($0;$1)
>  $0:=Round($1;2)
> 
> //End function
> 
> If I then replace the last line of code above to:
> $ fee_rounded:=test_round($fee)
> 
> and display it in an page, $fee is 9.075, and $fee_rounded is 9.08.
> 
> In other words, Round, when called directly in an Active4D script produces 
> incorrect results (9.07), but when call from a 4D function works 
> correctly(9.08).
> 
> 4D Server 12.4
> Windows 2008 server, 64 bit
> Active4D v6.0 r6
> 
> Any help appreciated.
> 
> TIA,
> MV
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Regards,

   Aparajita

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.2890 / Virus Database: 2639/6059 - Release Date: 01/26/13
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to