Skip to content

Commit 7c90fb6

Browse files
authored
Version 0.8.2 (#193)
This also updates README.md and adds the PkgEval badge.
1 parent 56760f3 commit 7c90fb6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FixedPointNumbers"
22
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
3-
version = "0.8.1"
3+
version = "0.8.2"
44

55
[deps]
66
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# FixedPointNumbers
22

33
[![Build Status](https://travis-ci.org/JuliaMath/FixedPointNumbers.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/FixedPointNumbers.jl)
4-
4+
[![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/F/FixedPointNumbers.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html)
55
[![codecov.io](http://codecov.io/github/JuliaMath/FixedPointNumbers.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaMath/FixedPointNumbers.jl?branch=master)
66

77
This library implements fixed-point number types. A
@@ -55,10 +55,9 @@ value `1.0` at 10, 12, 14, and 16 bits, respectively (`0x03ff`,
5555
compact printing and the `fY` component informs about the number of
5656
fractional bits and `X+Y` equals the number of underlying bits used.
5757

58-
To construct such a number, use `convert(N4f12, 1.3)`, `N4f12(1.3)`,
58+
To construct such a number, use `1.3N4f12`, `N4f12(1.3)`, `convert(N4f12, 1.3)`,
5959
`Normed{UInt16,12}(1.3)`, or `reinterpret(N4f12, 0x14cc)`.
60-
The latter syntax means to construct a `N4f12` (it ends in
61-
`uf12`) from the `UInt16` value `0x14cc`.
60+
The last syntax means to construct a `N4f12` from the `UInt16` value `0x14cc`.
6261

6362
More generally, an arbitrary number of bits from any of the standard unsigned
6463
integer widths can be used for the fractional part. For example:

src/FixedPointNumbers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module FixedPointNumbers
33
import Base: ==, <, <=, -, +, *, /, ~, isapprox,
44
convert, promote_rule, show, isinteger, abs, decompose,
55
isnan, isinf, isfinite,
6-
zero, oneunit, one, typemin, typemax, floatmin, floatmax, eps, sizeof, reinterpret,
6+
zero, oneunit, one, typemin, typemax, floatmin, floatmax, eps, reinterpret,
77
float, trunc, round, floor, ceil, bswap,
88
div, fld, rem, mod, mod1, fld1, min, max, minmax,
99
rand, length

0 commit comments

Comments
 (0)