Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add as_f64 and as_f64_seq #78

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Add as_f64 and as_f64_seq #78

merged 1 commit into from
Jan 8, 2024

Conversation

KodrAus
Copy link
Contributor

@KodrAus KodrAus commented Jan 8, 2024

Floating points are interesting data types because they can internally encode whether or not a value is actually a number or not through NaNs.

There are also cases where you want some numeric representation of a value without being too concerned with potential rounding to get there. In those cases, having a quick as-like conversion to get a floating point from any kind of numeric input saves needing to write your own visitor.

@KodrAus KodrAus merged commit f78e47e into main Jan 8, 2024
14 checks passed
@KodrAus KodrAus deleted the feat/as-f64 branch January 8, 2024 04:18
@KodrAus KodrAus mentioned this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant