I'm thinking this might work:

```
if ((dinteger_t)value >= 0 && (dinteger_t)value <= 9)
        strcat(buffer, ".0");
```