Update doc/efun/ aus Driversourcen.
Manpages der efuns aktualisiert, neue Manpages hinzugefuegt.
Change-Id: I7cc91684269ff56d1aef47d5c5e7c87f7fd531dc
diff --git a/doc/efun/to_int b/doc/efun/to_int
index 75c1992..a3a98ee 100644
--- a/doc/efun/to_int
+++ b/doc/efun/to_int
@@ -1,32 +1,33 @@
SYNOPSIS
- int to_int(string arg)
- int to_int(float arg)
- int to_int(int arg)
- int to_int(closure arg)
+ int to_int(string)
+ int to_int(float)
+ int to_int(int)
+ int to_int(closure)
(int)<value>
-BESCHREIBUNG
- Bei Floats werden die Nachkommastellen abgeschnitten, Strings mit
- Ziffern am Anfang werden bis zum ersten Nicht-Ziffern-Zeichen in
- Integers umgewandelt. Lfun-Closures werden in ihren Funktionsindex
- konvertiert, Variablen-Closures in ihren Variablenindex. Integers
- werden unveraendert zurueck gegeben.
+DESCRIPTION
+ Floats are truncated to integer values, strings with leadings
+ digits are converted to integers up to the first non-digit.
+ lfun-closures are converted into their function index (not adjusted
+ for inheritance), variable closure are converted into their variable
+ index.
+ Integers are just returned.
- Bezueglich Floats ist es wichtig, Rundungseffekte zu beachten:
- to_int(3.1*10.0) ergibt nicht 31, sondern 30, weil intern das
- Resultat der Multiplikation 30.999999 ergibt.
-
- Diese Funktion unterstuetzt die Basisprefixe '0x', '0o' und '0b'.
+ Regarding floats, it is important to keep rounding effects
+ in mind: to_int(3.1*10.0) does not return 31, but instead 30,
+ because internally the result of the multiplication is 30.999999.
-FEHLER
- Die Cast-Schreibweise funktioniert nur, wenn der genaue Wert von
- <value> zum Zeitpunkt der Kompilierung bekannt ist. Dies wird
- nicht geaendert werden, da die Funktionsform verwendet werden kann.
+ The function supports the '0x', '0o' and '0b' base prefixes.
-GESCHICHTE
- Eingefuehrt in 3.2.1@2.
- LDMud 3.2.11 fuehrte die Basisprefixe ein.
+BUGS
+ The cast notation only works if the precise type of <value>
+ is known at compile-time. This will not be fixed - use the
+ function form instead.
-SIEHE AUCH
+HISTORY
+ Introduced in 3.2.1@2.
+ LDMud 3.2.11/3.3.611 added support for the base prefixes.
+
+SEE ALSO
to_string(E), sscanf(E)