Skip to content

Commit

Permalink
v0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
candid82 committed Apr 24, 2021
1 parent c3e42fd commit 5d329d3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/procs.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
PRINT_IF_NOT_NIL
)

const VERSION = "v0.17.0"
const VERSION = "v0.17.1"

const (
CLJ Dialect = iota
Expand Down
42 changes: 42 additions & 0 deletions docs/joker.math.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,18 @@ <h2 id="_index">Index</h2>
<li>
<a href="#pow-10">pow-10</a>
</li>
<li>
<a href="#precision">precision</a>
</li>
<li>
<a href="#round">round</a>
</li>
<li>
<a href="#round-to-even">round-to-even</a>
</li>
<li>
<a href="#set-precision">set-precision</a>
</li>
<li>
<a href="#sign-bit">sign-bit</a>
</li>
Expand Down Expand Up @@ -534,6 +540,29 @@ <h3 class="Function" id="pow-10">pow-10</h3>
<p class="var-docstr">Returns 10**x, the base-10 exponential of x.</p>


</li>
<li>
<h3 class="Function" id="precision">precision</h3>
<span class="var-kind Function">Function</span>
<span class="var-added">v1.0</span>
<pre class="var-usage"><div><code>(precision f)</code></div>
</pre>
<p class="var-docstr">Returns the precision of a Number.<br>
<br>
The precision excludes any sign or exponent. For a BigInt, it&#39;s the<br>
number of bits needed to represent the number; for a BigFloat, Int,<br>
or Double, it&#39;s the number of bits available in that instance or<br>
type. E.g. (precision 1) returns either 31 or 63, depending on<br>
whether the Joker executable is 32-bit or 64-bit (for integers);<br>
(precision 1.0) returns 53 (as Double is always a float64); and<br>
(precision 1.0M) returns 53 as well, though prepending or appending<br>
enough 0 digits will result in a BigFloat with more precision<br>
reported.<br>
<br>
If f is not a supported Number type (such as Ratio), a panic<br>
results.</p>


</li>
<li>
<h3 class="Function" id="round">round</h3>
Expand All @@ -554,6 +583,19 @@ <h3 class="Function" id="round-to-even">round-to-even</h3>
<p class="var-docstr">Returns the integer nearest to x, rounding ties to the nearest even integer.</p>


</li>
<li>
<h3 class="Function" id="set-precision">set-precision</h3>
<span class="var-kind Function">Function</span>
<span class="var-added">v1.0</span>
<pre class="var-usage"><div><code>(set-precision prec f)</code></div>
</pre>
<p class="var-docstr">Returns a copy of a BigFloat with the specified precision.<br>
<br>
Calls Go&#39;s math/big.(*Float)SetPrec(prec) on a copy of f. prec must<br>
evaluate to a non-negative integer. Returns the resulting BigFloat.</p>


</li>
<li>
<h3 class="Function" id="sign-bit">sign-bit</h3>
Expand Down
Loading

0 comments on commit 5d329d3

Please sign in to comment.