ECMA-262, 9.5: Why the name “posInt”?

Axel Rauschmayer axel at rauschma.de
Sat Feb 18 06:27:05 PST 2012


Quote: “Let posInt be sign(number) * floor(abs(number)).”

Why is this variable called “posInt”? It can’t be an abbreviation for “positive integer”, because it can be negative(?)

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



More information about the es-discuss mailing list