Skip to main content
6 events
when toggle format what by license comment
Feb 17, 2014 at 1:55 comment added Victor Stafusa @AlbertRenshaw No, This would be the same as a=a+x%2, but that + is for string concatenation. I.e, your suggestion results in the digits in the backwards order.
Feb 16, 2014 at 23:10 comment added Albert Renshaw @Victor I don't know javascript so I might be wrong but at the end when you say a=x%2+a could this be shortened to a+=x%2 ? It works in all languages I know.
Feb 16, 2014 at 12:01 comment added Victor Stafusa @Blender Thanks, I knew that there existed some way, just could not find it.
Feb 16, 2014 at 12:01 history edited Victor Stafusa CC BY-SA 3.0
added 51 characters in body
Feb 16, 2014 at 11:53 comment added Blender You can replace Math.floor with ~~, as the range for the numbers is small.
Feb 16, 2014 at 7:00 history answered Victor Stafusa CC BY-SA 3.0