rouinding

View: New views
2 Messages — Rating Filter:   Alert me  

rouinding

by erore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I write print 3/4 in gnuplot the output is 1! I tried set format, searching the web and no results. How just to tell the program that I want decimals?

Re: rouinding

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the output is 0
you are doing integer arithmetics.

try
print 3./4.

erore wrote:
If I write print 3/4 in gnuplot the output is 1! I tried set format, searching the web and no results. How just to tell the program that I want decimals?