frederick ([info]mausolos) wrote,
@ 2008-09-16 17:39:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Current location:CD Baby
Current mood: busy
Current music:Five Feet High and Risin' (Johnny Cash)

Someday When I Write My Own Programming Language...
I'll make the modulo operator (%) return an array with two values: the usual remainder and the quotient. So, "17 % 3" would return "array( 2, 5 )". Otherwise, you have to do something like:

q = 0;
r = 0;

r = 17 % 3;
q = (17 - r) / 3;

Mind you, it's trivial. Still, it's an extra, unnecessary step and seeing as how the division calculation must have been done in the first place to get the remainder.


Oh, and I work at CD Baby now. Yay!




(1 comment) - (Post a new comment)


[info]opheliafloats
2008-09-18 05:42 am UTC (link)
>Oh, and I work at CD Baby now. Yay!
COOL!! I love CD Baby; such a great way to find small bands doing really unique things. Plus the baby head is creepy-cute.

I'm not going to pretend what the first part of that post means. ;)

(Reply to this)


(1 comment) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…