Indiscripts

Tag : numbers

How To Get parseInt( ) Fixed in ExtendScript

The global method parseInt(str,radix) has a critical bug in ExtendScript. When radix is greater than 10, some undesired characters can be mistakenly parsed as valid digits, which corrupts the output. This issue is solved in IdExtenso

Continue reading...

On the Precision of HurryCover Measurements

HurryCover for InDesign CS4/CS5/CS6/CCUser's question: “I have to enter in measurements to HurryCover that have more than four decimal point, such as .859375 inches. HC lets you enter this but then rounds it up to four spaces instead of the six that were entered. Is it actually making it the correct size and rounding up the number?”

Continue reading...

Operator Overloading with ExtendScript

Operator overloading in JavaScript is a controversial issue. Actually, this dangerous feature has been rejected in ECMAScript 4. However, ExtendScript allows you to override the behavior of many mathematical and logical operators on a class-by-class basis since CS2.

Continue reading...