* Posts by rival

2 publicly visible posts • joined 2 Feb 2016

Hands on with the BBC's Micro:Bit computer. You know, for kids

rival
Coat

The ARM RISC chips first appeared on BBC Computers. The (I think) very first ones available were second processors on the B+ and Master, available through the Tube(tm) interface. Later, they were in the BBC A3000 computer.

You've seen things people wouldn't believe – so tell us your programming horrors

rival

Because that is how you can tell if a number is negative...

My fave ever https://twitter.com/MarcosBL/status/641110424193232897

static int isNegative(float arg)

{

char *p = (char*) malloc(20);

sprintf(p, "%f", arg);

return p[0] == '-';

}