[libre-riscv-dev] [Bug 111] FCVT unsigned/signed char/short/int/long (8/16/32/64) to FP16/32/64 needed

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Wed Jul 17 08:09:56 BST 2019


Jacob Lifshay <programmerjake at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |programmerjake at gmail.com

--- Comment #2 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #1)
> >>> from sfpy import Float16, Float32
> >>> y = Float16(10)
> >>> y
> Float16(5.960464477539062e-07)

that looks correct to me, docs for convenience: 
"""Given an int, create a Float16 from the bitpattern represented by
that int. Otherwise, given some value, create a Float16 by rounding

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-riscv-dev mailing list