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 28 of file istr.F.

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