Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
34bb63de
Commit
34bb63de
authored
Sep 04, 2013
by
Sylvain Thery
Browse files
bug export nastran file
parent
5cc5a623
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Algo/Export/exportVol.hpp
View file @
34bb63de
...
...
@@ -46,6 +46,15 @@ inline std::string truncFloatTO8(float f)
std
::
stringstream
ss
;
ss
<<
f
;
std
::
string
res
=
ss
.
str
();
size_t
expo
=
res
.
find
(
'e'
);
if
(
expo
!=
std
::
string
::
npos
)
{
if
(
res
[
expo
+
2
]
==
'0'
)
return
res
.
substr
(
0
,
6
)
+
res
[
expo
+
1
]
+
res
[
expo
+
3
];
return
res
.
substr
(
0
,
5
)
+
res
.
substr
(
expo
+
1
);
}
return
res
.
substr
(
0
,
8
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment