Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thomas Pitiot
CGoGN
Commits
34bb63de
Commit
34bb63de
authored
Sep 04, 2013
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug export nastran file
parent
5cc5a623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
include/Algo/Export/exportVol.hpp
include/Algo/Export/exportVol.hpp
+9
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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