* [Caml-list] string -> int
@ 2002-11-29 14:17 altavillasalvatore
2002-11-29 15:23 ` Maxence Guesdon
0 siblings, 1 reply; 2+ messages in thread
From: altavillasalvatore @ 2002-11-29 14:17 UTC (permalink / raw)
To: caml-list
Objective Caml version 3.01
Hi all,
I would want to have an example in order to convert( using standard
library) a type string in a type int.
example
string "150" in int 150
Regards.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] string -> int
2002-11-29 14:17 [Caml-list] string -> int altavillasalvatore
@ 2002-11-29 15:23 ` Maxence Guesdon
0 siblings, 0 replies; 2+ messages in thread
From: Maxence Guesdon @ 2002-11-29 15:23 UTC (permalink / raw)
To: caml-list
>
> I would want to have an example in order to convert( using standard
> library) a type string in a type int.
>
> example
>
> string "150" in int 150
You can use the function int_of_string : string -> int
example :
int_of_string "150"
returns the integer 150.
--
Maxence Guesdon
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-29 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-29 14:17 [Caml-list] string -> int altavillasalvatore
2002-11-29 15:23 ` Maxence Guesdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox