Use half_nbits floats instead of nbits. fixes gh-1510
Merge pull request #1514 from lamblin/fix_1510

Use half_nbits floats instead of nbits. fixes gh-1510