BUG: VB4(16 bit) - Int and Fix functions don't work correctly 
Author Message
 BUG: VB4(16 bit) - Int and Fix functions don't work correctly

i found this BUG in "Int" and "Fix" function under VB4 when i use Log10
function found in vb4 help file

Function Log10(X)
    Log10 = Log(X) / Log(10#)
End Function

This is the bug

Log10(10)=1
log10(100)=2
Log10(1000)=3
log10(10000)=4
log10(100000)=5
log10(1000000)=6
log10(10000000)=7
and go on obviously.
When i apply int or fix function above i obtain this:
int(Log10(10))=1
int(log10(100))=2
int(Log10(1000))=2
int(log10(10000))=4
int(log10(100000))=5
int(log10(1000000))=5
int(log10(10000000))=7
and go on. One error every 1000^n

Nice;)

i resolve it add an effimery number (0.00000000000000000001) to number
inside int function.

BYE

------------------------------------------------------------
Bruni Emiliano - nick "Emi_B"            

My curriculum: http://www.*-*-*.com/ ~ebruni/curriculum.html
------------------------------------------------------------

"Il file di testo per la RFC854 contiene esattamente 854 ri-
ghe. Ritenete che  ci sia qualche 'significato  cosmico'  in
questo numero?"                                            
                 Tratto dagli esercizi sul protocollo TELNET
                                  Internetworking con TCP/IP
                                            Douglas E. Comer



Sat, 11 Sep 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Russian(Cyrillic): vb4 32-bit works, but vb4 16-bit doesn't

2. int function doesn't work correctly.

3. VB4 16 Bit Software doesn't work on Windows 3.1

4. VB4 / 16 Bit .EXE doesn't function ...

5. Object Server not Correctly Register in Vb4 16 bit

6. Sample Apps don't work in 32-Bit VB4

7. CARDS.DLL 16 Bit doesn't work on VB 4.0 32 Bit

8. CARDS.DLL 16 Bit doesn't work on VB 4.0 32 Bit

9. CARDS.DLL 16 Bit doesn't work on VB 4.0 32 Bit

10. CARDS.DLL 16 Bit doesn't work on VB 4.0 32 Bit

11. 16 bit .dll's and 32 bit VB4

12. Calling 16 bit DLL from VB4 16 bit in Win 95

 

 
Powered by phpBB® Forum Software