conversion from type character to type real
- From: christina.goerner@xxxxxx (Crissy)
- Date: 29 Apr 2005 08:09:21 -0700
Hi!
I have a 10 bit .pgm-image. The header (RECL=120) is type character
and contains 2 numbers. For example -1,170460 (header(91:99)) and
0,022950 (header(107:114)). I need these 2 numbers for further
calculations so I have to read them out of the header an convert them
into type real. But an additional problem is (in my opinion), that
these numbers have a "," instead of a "." as decimal separation.
Does anyone have a good idea how to realize this problem with F90? Is
it possible with an internal read statement? (I use the Compaq Visual
Fortran 6 compiler.)
Thanks a lot for helping me!
Crissy
.
- Follow-Ups:
- Re: conversion from type character to type real
- From: Richard E Maine
- Re: conversion from type character to type real
- Prev by Date: Re: Writing output files to memory
- Next by Date: Re: compilation problem with module function interface definition
- Previous by thread: Writing output files to memory
- Next by thread: Re: conversion from type character to type real
- Index(es):
Relevant Pages
|