Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / no comprende

Author
Message
bushsucks
21
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United States
Posted: 1st Apr 2003 21:46
I am tring to output the answer to an equation where the answer is a real number. The problem is that when I output it, it is automatically truncated.
So, this:

print 8/5

would output a '1'. I also tried:

a#= 8/5
print a#

this also outputted a '1'. What is going on? Why does this:

a#=1.3243
print a#

output a real number, but my other examples don't? (i'm using just plain DB)
don't re-elect bush
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 1st Apr 2003 22:58
this works:
a#=8.0/5
bushsucks
21
Years of Service
User Offline
Joined: 8th Mar 2003
Location: United States
Posted: 1st Apr 2003 23:36
it works! Thanks a lot. Flashingblade rules!

don't re-elect bush

Login to post a reply

Server time is: 2024-09-20 03:25:44
Your offset time is: 2024-09-20 03:25:44