Turning numbers into strings can be a big waste of time and money. Paul Khuong wrote about this in How to Print Integers Really Fast (With Open Source AppNexus Code!). […]
Read moreCategory: Numbers
How you average numbers doesn’t matter
Perl 6 averages “floating point” numbers correctly. That’s an interesting statement because it seems like it should be obvious and expected. However, people around computers long enough are used to […]
Read moreDon’t use < in programming
I don’t actually mean that you shouldn’t use <, but I’m playing off Don’t use the greater than sign in programming. That post from Lewellyn Falco reminded me of a […]
Read moreAs many digits as you like
I was playing with arbitrary precision rational numbers in Perl 6, irrationally perhaps by playing with the natural base, e, also known as Euler’s Number. That’s a builtin value in […]
Read moreClose enough
Perl 6 has some amazing numerical features, including builtin complex number computations. You might never need these, but they permit a bit of math geekry that I find quite pleasing. […]
Read moreQuick Tip #21: The rats in the machine
Let’s think about numbers. I’ve been inserting Kickstarter messages into my Quick Tips, but this post is about Kickstarter. Or, about their mistreatment of numbers. There’s no scandal, just those […]
Read moreQuick Tip #20: Way off base
Want to use numbers that are represented in something other than base 10? That’s no problem in Perl 6. Some languages throw you a bone with binary, octal, or hexadecimal […]
Read more