bwstod
double bwstod(struct bwstring *s0, bool *empty);
d1 = bwstod(kv1->k, &empty1);
d2 = bwstod(kv2->k, &empty2);