OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
istr.F File Reference
#include "implicit_f.inc"
#include "ascchr_c.inc"

Go to the source code of this file.

Functions/Subroutines

integer function istr (str)

Function/Subroutine Documentation

◆ istr()

integer function istr ( character str)

Definition at line 30 of file istr.F.

31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C D u m m y A r g u m e n t s
37C-----------------------------------------------
38 CHARACTER STR*8
39C-----------------------------------------------
40C C o m m o n B l o c k s
41C-----------------------------------------------
42#include "ascchr_c.inc"
43C-----------------------------------------------
44C L o c a l V a r i a b l e s
45C-----------------------------------------------
46 INTEGER MANT12, MANT21, MANT22, MANT31, MANT32, MANT41, MANT42,
47 . IS, MANT1, MANT2, MANT3, MANT4
48 mant12=iascod(ichar(str(2:2)))
49 mant21=iascod(ichar(str(3:3)))
50 mant22=iascod(ichar(str(4:4)))
51 mant31=iascod(ichar(str(5:5)))
52 mant32=iascod(ichar(str(6:6)))
53 mant41=iascod(ichar(str(7:7)))
54 mant42=iascod(ichar(str(8:8)))
55C
56 is=mant12/16
57 mant1=mant12-16*is
58 mant2=mant21*32+mant22
59 mant3=mant31*32+mant32
60 mant4=mant41*32+mant42
61C
62 istr=mant4+1000*mant3+1000000*mant2+1000000000*mant1
63 IF(is==1)istr=-istr
64C
65 RETURN
integer function istr(str)
Definition istr.F:31