bugGNU Octave - Bugs: bug #54111, binary data read using...


bug #54111: binary data read using "fread" doesn't recognize any "PRECISION" arg in Windows 10

Submitted by:  Bill S <bills>
Submitted on:  Wed 13 Jun 2018 01:38:25 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid Assigned to:  None
Originator Name:  Bill S Open/Closed:  Closed
Release:  4.4.0 Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 13 Jun 2018 04:46:44 PM UTC, comment #2:

I think Michael is correct in comment #1. Try 'help fread' and note this paragraph

Modifying your code to include the type conversion

Marking as invalid and closing report.

Rik <rik5>
Project Administrator
Wed 13 Jun 2018 02:10:06 PM UTC, comment #1:

This is not a bug, this is correct behaviour. The default return type of fread indeed is double. What you are after is type conversion, or rather probably no type conversion to the default double in your case, which you get by replacing "int8" by "*int8".

Michael Leitner <mleitner>
Wed 13 Jun 2018 01:38:25 PM UTC, original submission:

Trying to read binary data using FREAD with PRECISION set to different arguments produces only "double" as answers.
whos val

Attr Name Size Bytes Class
==== ==== ==== ===== =====
val 1x1 8 double

Bill S <bills>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mleitner (Posted a comment)
  • -email is unavailable- added by bills (Submitted the item)
  • -email is unavailable- added by bills

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-13 rik5 StatusNone => Invalid
        Open/ClosedOpen => Closed
    2018-06-13 bills Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.4