Convenience routine to output an element id with float value val using precision significant
digits.
| this | |
| id |
Element name |
| val |
Element value |
| precision |
the number of significant digits to use, -1 meaning "enough". |