- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have old outputs using MS fortran 5.1 for DOS where fractions are printed without leading zeros, e.g. .45.
My IVF 9.1.034 prints with leading zeros, e.g. 0.45.
Is there a way for IVF to print without leading zeros (forautomated output comparisons)?
Thank you,
Yair
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, sorry. The Fortran standard makes the leading zero for fractions optional. Most implementations display it, but Microsoft's did not. This is not under user control.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To be portable you will have to write edit function that takes a real and format, write to internal record, remove potential leading zero, return string.
Jim

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page