OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
stri.F
Go to the documentation of this file.
1
Copyright> OpenRadioss
2
Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3
Copyright>
4
Copyright> This program is free software: you can redistribute it and/or modify
5
Copyright> it under the terms of the GNU Affero General Public License as published by
6
Copyright> the Free Software Foundation, either version 3 of the License, or
7
Copyright> (at your option) any later version.
8
Copyright>
9
Copyright> This program is distributed in the hope that it will be useful,
10
Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11
Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
Copyright> GNU Affero General Public License for more details.
13
Copyright>
14
Copyright> You should have received a copy of the GNU Affero General Public License
15
Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16
Copyright>
17
Copyright>
18
Copyright> Commercial Alternative: Altair Radioss Software
19
Copyright>
20
Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21
Copyright> software under a commercial license. Contact Altair to discuss further if the
22
Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23
CHARACTER*8
FUNCTION
stri
(N)
24
C-----------------------------------------------
25
C I m p l i c i t T y p e s
26
C-----------------------------------------------
27
#include "implicit_f.inc"
28
C-----------------------------------------------
29
C D u m m y A r g u m e n t s
30
C-----------------------------------------------
31
INTEGER
n
32
C-----------------------------------------------
33
C C o m m o n B l o c k s
34
C-----------------------------------------------
35
#include
"chrasc_c.inc"
36
C-----------------------------------------------
37
C L o c a l V a r i a b l e s
38
C-----------------------------------------------
39
INTEGER
nn, is, mant1, mant2, mant3, mant4, mant12, mant21,
40
. mant22, mant31, mant32, mant41, mant42
41
C-----------------------------------------------
42
IF
(n>=0)
THEN
43
nn=n
44
is=0
45
ELSE
46
nn=-n
47
is=1
48
ENDIF
49
mant1=nn/1000000000
50
nn =nn-1000000000*mant1
51
mant2=nn/1000000
52
nn =nn-1000000*mant2
53
mant3=nn/1000
54
mant4=nn-1000*mant3
55
C
56
mant12=mant1+16*is
57
mant21=mant2/32
58
mant22=mant2-32*mant21
59
mant31=mant3/32
60
mant32=mant3-32*mant31
61
mant41=mant4/32
62
mant42=mant4-32*mant41
63
C
64
stri
(1:1)=
'0'
65
stri
(2:2)=codas(mant12)
66
stri
(3:3)=codas(mant21)
67
stri
(4:4)=codas(mant22)
68
stri
(5:5)=codas(mant31)
69
stri
(6:6)=codas(mant32)
70
stri
(7:7)=codas(mant41)
71
stri
(8:8)=codas(mant42)
72
C
73
RETURN
74
END
stri
character *8 function stri(n)
Definition
stri.F:24
engine
source
tools
univ
stri.F
Generated by
1.15.0