From 037150979ff809df85757bd2b3f676e2e4c6be88 Mon Sep 17 00:00:00 2001
From: Hans Bolinder Argument Argument
Example:
> {F1,Fs} = string:to_float("1.0-1.0e-1"),
@@ -280,18 +274,12 @@ sub_string("Hello World", 4, 8).
- to_integer(String) -> {Int,Rest} | {error,Reason}
+
Returns an integer whose text representation is the integers (ASCII values) in String.
-
- String = string()
- Int = integer()
- Rest = string()
- Reason = no_integer | not_a_list
-
- Argument String is expected to start with a valid text
+
Argument String is expected to start with a valid text
represented integer (the digits being ASCII values). Remaining characters
- in the string after the integer are returned in Rest .
+ in the string after the integer are returned in Rest .
Example:
> {I1,Is} = string:to_integer("33+22"),
--
cgit v1.2.3