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