commit 47c25c155d033b3b2b602ec5771e2cdc57f387d7
parent 9cd1e870afdaead778b079a306e582f7f5ffeae0
Author: Alexander Burger <abu@software-lab.de>
Date: Fri, 25 Feb 2011 10:39:39 +0100
Docs for last change
Diffstat:
3 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/doc/refB.html b/doc/refB.html
@@ -155,11 +155,12 @@ returns the result. See also <code><a href="refU.html#usec">usec</a></code>.
-> NIL
</code></pre>
-<dt><a name="bin"><code>(bin 'num) -> sym</code></a>
+<dt><a name="bin"><code>(bin 'num ['num]) -> sym</code></a>
<dt><code>(bin 'sym) -> num</code>
<dd>Converts a number <code>num</code> to a binary string, or a binary string
-<code>sym</code> to a number. See also <code><a
-href="refO.html#oct">oct</a></code>, <code><a
+<code>sym</code> to a number. In the first case, if the second argument is
+given, the result is separated by spaces into groups of such many digits. See
+also <code><a href="refO.html#oct">oct</a></code>, <code><a
href="refH.html#hex">hex</a></code>, <code><a
href="refF.html#fmt64">fmt64</a></code>, <code><a
href="refH.html#hax">hax</a></code> and <code><a
@@ -170,6 +171,8 @@ href="refF.html#format">format</a></code>.
-> "1001001"
: (bin "1001001")
-> 73
+: (bin 1234567 4)
+-> "100 1011 0101 1010 0001 11"
</code></pre>
<dt><a name="bind"><code>(bind 'sym|lst . prg) -> any</code></a>
diff --git a/doc/refH.html b/doc/refH.html
@@ -185,16 +185,15 @@ Content-Type: text/html; charset=utf-8
</html>
</code></pre>
-<dt><a name="hex"><code>(hex 'num) -> sym</code></a>
+<dt><a name="hex"><code>(hex 'num ['num]) -> sym</code></a>
<dt><code>(hex 'sym) -> num</code>
<dd>Converts a number <code>num</code> to a hexadecimal string, or a hexadecimal
-string <code>sym</code> to a number. See also <code><a
-href="refB.html#bin">bin</a></code>, <code><a
+string <code>sym</code> to a number. In the first case, if the second argument
+is given, the result is separated by spaces into groups of such many digits. See
+also <code><a href="refB.html#bin">bin</a></code>, <code><a
href="refO.html#oct">oct</a></code>, <code><a
href="refF.html#fmt64">fmt64</a></code>, <code><a
-href="refH.html#hax">hax</a></code>
-
- and <code><a
+href="refH.html#hax">hax</a></code> and <code><a
href="refF.html#format">format</a></code>.
<pre><code>
@@ -202,6 +201,8 @@ href="refF.html#format">format</a></code>.
-> "111"
: (hex "111")
-> 273
+: (hex 1234567 4)
+-> "12 D687"
</code></pre>
<dt><a name="host"><code>(host 'any) -> sym</code></a>
diff --git a/doc/refO.html b/doc/refO.html
@@ -62,11 +62,12 @@ Obj (+A +B +C)
-> Obj
</code></pre>
-<dt><a name="oct"><code>(oct 'num) -> sym</code></a>
+<dt><a name="oct"><code>(oct 'num ['num]) -> sym</code></a>
<dt><code>(oct 'sym) -> num</code>
<dd>Converts a number <code>num</code> to an octal string, or an octal string
-<code>sym</code> to a number. See also <code><a
-href="refB.html#bin">bin</a></code>, <code><a
+<code>sym</code> to a number. In the first case, if the second argument is
+given, the result is separated by spaces into groups of such many digits. See
+also <code><a href="refB.html#bin">bin</a></code>, <code><a
href="refH.html#hex">hex</a></code>, <code><a
href="refF.html#fmt64">fmt64</a></code>, <code><a
href="refH.html#hax">hax</a></code> and <code><a
@@ -77,6 +78,8 @@ href="refF.html#format">format</a></code>.
-> "111"
: (oct "111")
-> 73
+: (oct 1234567 3)
+-> "4 553 207"
</code></pre>
<dt><a name="off"><code>(off var ..) -> NIL</code></a>