Just found this in the tracker for a recently fixed bug (06859: Integer values displayed as floiting point numbers):
LimeSurvey: master be6e85bc
Timestamp: 2012-11-20 09:25:21
Author: Shnoulle
Committer: Denis Chenu
Dev: remove all ending 0 to numeric question type, and remove the . if it's at ending
Of course, trailing zeroes may be removed ONLY if they come AFTER the decimal sign!
This might be the cause for the bug reported by jussibus (not yet in the tracker).
Seems like the culprit is the indiscrimating rtrim() here in application/helpers/common_helper.php
... ...
@@ -1753,11 +1752,11 @@ function getExtendedAnswer($iSurveyID, $sFieldCode, $sValue, $oLanguage)
1753 1752 case 'N':
1754 1753 if (trim($sValue)!='')
1755 1754 {
1755 + $sValue=rtrim($sValue,"0.");