- 
                Notifications
    You must be signed in to change notification settings 
- Fork 66
          RFC: Add math.isnan, math.isinf and math.isfinite to Math Library
          #144
        
          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
base: master
Are you sure you want to change the base?
Conversation
| I don't think both  | 
| Can you please linewrap the markdown file so that we can leave comments in a targeted way? 80 or 100 or even 120 columns is fine. | 
| @aatxe Done 😄 | 
| It's very common for language math APIs to have both isinf and isfinite. | 
| Could we also support  
 | 
| 
 Feels like this would be better to implement inside of the vector library, going off existing convention (math.max, vector.max etc). Perhaps in a separate RFC? | 
| Yeah, I don't think we need to talk about vector support for functions in what is effectively the number library | 
Co-authored-by: ariel <[email protected]>
Rendered
Proposal to add:
math.isnan(x: number): booleanmath.isinf(x: number): booleanmath.isfinite(x: number): boolean