Difference with PB3.0a and PB3.0d

Difference with PB3.0a and PB3.0d

Post by Lim To » Fri, 28 Jul 1995 04:00:00



Hi!  What's the diff between PB 3.0a and 3.0d?  Does 3.0d solve alot of
bugs?  Does it bring any of its own bugs along?

Thanks for any info!

 
 
 

1. A *serious* PB3.0 and PB3.0a bug.

PB does not convert decimal numbers to real correctly.
You can do the following PB script to see this:

//---------------------------
decimal a
real b

a = 74247.02
b = a
//---------------------------

messagebox("bug","a = " + string(a) + " b = " + string(b))

This script pops up the message a = 74247.02 b = 7.4247.0234375
That is a <> b. You can also check a and b in the PB-debugger if
you do not trust the messagebox() function, the result is the same
that is a <> b

This bug causes problem e.g. when calculating total coast as shown
in the followning script:

//---------------------------
decimal unitPrice,totalPrice
real units

units = 5
unitPrice = 74247.02

totalPrice = units * unitPrice
//---------------------------

This will give totalPrice = 371,235.125 but 5 * 74247.02 = 371,235.100

Anyone got a solution to this problem?

--

-----------------------------------------------------------------

2. SBS 4.5 mvfldr.exe. Wei? jemand, wo ich diese Datei runterladen kann. Brauche nicht das ganze SBS Paket.

3. GPF in PB3.0a

4. best teenagers dancers in mxe9xico

5. HELP!!! GPF in PB3.0a

6. Indent next to left Shared Border

7. Q:MS SQL Server & PB3.0a - change pwd?

8. USB Keyboard with more than 2 USB ports

9. Help - PB3.0a Date fields

10. Help - PB3.0a, MS SQL Server 4.2 conversion from Watcom 3.2e

11. executable will run, but cant run from within PB3.0a

12. more info executable will run, but cant run from within PB3.0a

13. PB3.0a - How to check uniqueness in DW