TIL that NASA lost a $330m Mars Orbiter in 1999, immediately before mars orbit was achieved, because one of the contracted US companies used imperial units instead of metric.
I coulda swore NASA did account for that and wrote unit conversion subroutines, and that the bug was that a conversion was missed, rather than not knowing the unit mismatch at all