# Read out Fortran unformatted file in C

**URL:** <https://fortran-lang.discourse.group/t/read-out-fortran-unformatted-file-in-c/3230>\
**Category:** Uncategorized\
**Created:** [April 13, 2022, 10:16am UTC](https://fortran-lang.discourse.group/t/read-out-fortran-unformatted-file-in-c/3230 "2022-04-13T10:16:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![msz59](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@msz59](https://fortran-lang.discourse.group/u/msz59)\
**Post date:** [April 13, 2022, 11:16am UTC](https://fortran-lang.discourse.group/t/read-out-fortran-unformatted-file-in-c/3230/7 "2022-04-13T11:16:27Z")

</div>

I’d say more likely values of some function of cos(theta) (x-axis) and r (y-axis). The reading should be straightforward, be it in C or Fortran but the values are somewhat strange. A _typical_ hex value from the dump, say 8480412e00000000, represents -5.3374109887996959E-287 if big-endian or 3.8341701404960092E-315 if little-endian.

---

_[View the full topic](https://fortran-lang.discourse.group/t/read-out-fortran-unformatted-file-in-c/3230)._
