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 more# Category: Numbers

# Don’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 more# As 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 more# Close 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 more# Quick 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 more# Quick 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