About me: software developer who is into JavaScript and NodeJS and constantly working on one or another side project and/or open source. I have a blog at https://alex-rudenko.com
About me: software developer who is into JavaScript and NodeJS and constantly working on one or another side project and/or open source. I have a blog at https://alex-rudenko.com
No, in a perfect world, as a part of the 'use native' directive I mentioned in my OP comment, you would be able to comment on variables to specify the number type
something along the lines of
/** @type i64 */// i64 could be replaced with any of i8,i16,i32,i64,f8,f16,f32,f64constnum=12;
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You forgot 64bit integers and, perhaps, proper integers in general :-D
All numbers in JavaScript are automatically 64 bit floating-point numbers.
Source: ECMAScript 262 § The Number Type
Do you say that a 64-bit float-point number is as good as a 64-bit integer? stackoverflow.com/questions/964362...
No, in a perfect world, as a part of the
'use native'
directive I mentioned in my OP comment, you would be able to comment on variables to specify the number typesomething along the lines of