|
@@ -11,6 +11,7 @@
|
|
* \author Original author CERL
|
|
* \author Original author CERL
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
+#include <string.h>
|
|
#include <grass/gis.h>
|
|
#include <grass/gis.h>
|
|
|
|
|
|
/*!
|
|
/*!
|
|
@@ -24,6 +25,10 @@ void G_trim_decimal(char *buf)
|
|
{
|
|
{
|
|
char *mark;
|
|
char *mark;
|
|
|
|
|
|
|
|
+ /* don't trim e+20 into e+2 */
|
|
|
|
+ if( strchr(buf, 'e') || strchr(buf, 'E') )
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
/* find the . */
|
|
/* find the . */
|
|
while (*buf != '.')
|
|
while (*buf != '.')
|
|
if (*buf++ == 0)
|
|
if (*buf++ == 0)
|