RE: Convert Boolean to Numeric?
If the only reason you are doing this is to pass to a WinAPI or DLL function, just pass the boolean and it will be converted automatically by Plus. Otherwise, just use parseInt, multiply by one, or an inline if statement (b?1:0).
|