--- In ocaml_beginners@yahoogroups.com, Richard Jones
<rich ...> wrote:
>
> On Tue, Jul 25, 2006 at 02:53:32PM -0000, prosysd
wrote:
> > I am trying to plot a graph consisting of float
values. The problem
> > is the Graphics library's plots etc only allow
ints and I was hoping
> > whether there is another way to do this. Thanks.
>
> You have to convert your floats into ints. The
in-built int_of_float
> can be used to do this.
>
> Rich.
>
> --
> Richard Jones, CTO Merjis Ltd.
> Merjis - web marketing and technology - http://merjis.com
> Team Notepad - intranets and extranets for business -
http://team-notepad.com
>
The only problem I have is the loss of precision. For
example,
2.1 and 2.18 will be treated as 2. Thanks.
George
------------------------ Yahoo! Groups Sponsor
--------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/saFolB/TM
------------------------------------------------------------
--------~->
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|