next up previous contents
Next: 3.2 How to Process Up: 3.1 How to Process Previous: 3.1.2 How to Process   Contents


3.1.3 How to Process a Floating Point Number

Non-integer numbers are declared with the Float element. Note that Float elements can also read an integer, but Integer elements cannot read a floating point number.

Snippet from the Input Deck

17.4
80
72.5

Snippet from the FSML File

<FileData>
  <Float name="dist" description="crossing distance" units="miles"/>
  <Float name="avgtime" description="average crossing time" units="minutes"/>
  <Float name="mintime" description="fastest crossing time" units="minutes"/>
</FileData>
 
<FileStructure>
  <Record ignoreOnRead="false"/>
    <SetValue target="dist"/>
  </Record>
  <Record ignoreOnRead="false"/>
    <SetValue target="avgtime"/>
  </Record>
  <Record ignoreOnRead="false"/>
    <SetValue target="mintime"/>
  </Record>
</FileStructure>


next up previous contents
Next: 3.2 How to Process Up: 3.1 How to Process Previous: 3.1.2 How to Process   Contents

SAIC Ship Technology Division, Annapolis, Maryland, USA
2004-10-26