MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/mx/DateTime/mxDateTime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/mx/DateTime/mxDateTime/testcomdates.py
from mx.DateTime import *

c = 35000.0
error = 0
for i in range(1000000):
    t = DateTimeFromCOMDate(c)
    tc = t.COMDate()
    if not tc == c:
        print 'failed for: %s (%.16f != %.16f)' % (t,c,tc)
        error = 1
    # Let's give IEEE floats a hard time...
    if i % 10 == 0:
        c = c - 0.009
    else:
        c = c + 0.0099

if not error:
    print 'All went well !'

Anon7 - 2021