Skip to content

How about adding real32 support? #19

@zoziha

Description

@zoziha

csv-module is very easy to use, thanks, @jacobwilliams !

Description

Both real32 and real64 are commonly used floating point precisions, although we can modify wp=>real64 to wp=>real32 in csv_kinds.
But if csv-module supports real32 and real64 at the same time, is it possible?

If it is worth a PR

I submitted support for real32 here. I don’t know if it is worth submitting a PR?
What I did is:

  • Add sp=>real32 in csv_kinds;
  • Add to_real_sp, rename to_real to to_real_wp;
  • Add get_real_sp_column, rename get_real_column to get_real_wp_column;
  • Add a test_csv_sp test.

Addition

toml-f also only supports double precision at the beginning, maybe for convenience, it now supports single precision and double precision floating point types.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions