The preferred method for reading from a channel using the Tcl API is Tcl_ReadChars(). When reading from a binary channel, the data will be stored as a byte array until referenced, at which point conversions will be done.
I then have a set of functions for retrieving data from the object: Tcl_Get{String,Double,Int}FromObj(). However, if I read in a float, it seems that none of these will do the right thing to extract the value I intended.
At this point, I am trying to reason from the documentation. It may be the case that Tcl_GetDoubleFromObj() will be flexible enough to handle this case... but that doesn't seem to be the case based on the documentation.
Using the Tcl C API, how should I read a float from a binary file?
binarycommand does. (Tcl_GetDoubleFromObjparses a human-readable string.)