Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
187
rated 0 times [  190] [ 3]  / answers: 1 / hits: 34213  / 10 Years ago, wed, september 3, 2014, 12:00:00

What is the point to change (int) 1000 to 1E3?


And where does 1E3 come from?


I know just 3bytes vs 4bytes.


More From » minify

 Answers
60

The whole point of minification is to be able to pass less data over the network but retain the same functionality.



Taken from wikipedia:


Minification (also minimisation or minimization), in computer programming languages and especially JavaScript, is the process of removing all unnecessary characters from source code without changing its functionality. These unnecessary characters usually include white space characters, new line characters, comments, and sometimes block delimiters, which are used to add readability to the code but are not required for it to execute.



As long as the size is smaller the minification is doing its job.


1E3 pretty much means 10 to the power of 3; a shorter way of representing the number 1000.


[#69577] Sunday, August 31, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mariann

Total Points: 201
Total Questions: 133
Total Answers: 107

Location: Czech Republic
Member since Thu, Aug 11, 2022
2 Years ago
;