D
Duncan Muirhead
I'm writing a wee utility that applies some simple transforms (eg adds
offsets) to some (text file) fields that represent floating point numbers.
Simple enough. However I would like to preserve the input format, e.g. if
the input looks like %15.7e then so should the output. Is there any
cunning use of e.g. sscanf to get not just the number, but also the
format?
TIA
Duncan
offsets) to some (text file) fields that represent floating point numbers.
Simple enough. However I would like to preserve the input format, e.g. if
the input looks like %15.7e then so should the output. Is there any
cunning use of e.g. sscanf to get not just the number, but also the
format?
TIA
Duncan