pyyeti.nastran.bulk.format_double16

pyyeti.nastran.bulk.format_double16(value)[source]

Format a float in Nastran double-precision 16 fixed-field syntax.

Parameters:

value (float) – The value to be formatted

Returns:

field (str) – The formatted value.

Examples

>>> from pyyeti import nastran
>>> print(nastran.format_double16(1.0))
           1.D+0
>>> print(nastran.format_double16(1.2345678))
    1.2345678D+0
>>> print(nastran.format_double16(-123456.78e8))
  -1.2345678D+13
>>> print(nastran.format_double16(1234567898769.0e5))
1.2345678988D+17