View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20568Bug reportsStatisticspublic2026-06-18 17:43
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.0.x 
Summary20568: Implicit conversion from float 0.5 to int loses precision
Description

With crypted attribute , when try to get quartile, we cast as float, not if not crypted.

  1. No reason of cast if we do not cast when not crypted (must cast as both)
  2. Throw an error with debug set
Steps To Reproduce

Steps to reproduce

  1. Import this LSA
  2. Set debug=1
  3. Go to statistics

Expected result

have the result

Actual result

Throw error

TagsNo tags attached.
Attached Files
Bug heat2
Complete LimeSurvey version number (& build)7.0.2
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-06-18 16:50

developer   ~85069

Have to find the question with this issue, send a LSA when found wityh one cryoted, other one not cryoted

DenisChenu

DenisChenu

2026-06-18 17:31

developer   ~85070

Lighter lss : only 2 numeric question, same value

but
I quickly update the code to remove the (loat) and
$firstRowFieldvalue = LSActiveRecord::decryptSingle($allRows[$row][$fielddata['fieldname']]); those errors, no need to cast ?

DenisChenu

DenisChenu

2026-06-18 17:33

developer   ~85071

$row is 0.5 ....

DenisChenu

DenisChenu

2026-06-18 17:38

developer   ~85072

Last edited: 2026-06-18 17:41

2 records : 2/4 x 3 = 1.5 : broke.

Must always set to lower : cast as int !

DenisChenu

DenisChenu

2026-06-18 17:43

developer   ~85073

My opinion : quartile can not be evaluated with cryoted data : order by crypted .... we do not call all and reorder, we call by order.

Issue History

Date Modified Username Field Change
2026-06-18 16:49 DenisChenu New Issue
2026-06-18 16:49 DenisChenu File Added: survey_archive_272476.lsa
2026-06-18 16:50 DenisChenu Note Added: 85069
2026-06-18 16:50 DenisChenu Bug heat 0 => 2
2026-06-18 17:31 DenisChenu Note Added: 85070
2026-06-18 17:31 DenisChenu File Added: Capture d’écran du 2026-06-18 17-29-22.png
2026-06-18 17:31 DenisChenu File Added: survey_archive_272476-light.lsa
2026-06-18 17:33 DenisChenu Note Added: 85071
2026-06-18 17:38 DenisChenu Note Added: 85072
2026-06-18 17:41 DenisChenu Note Edited: 85072
2026-06-18 17:43 DenisChenu Note Added: 85073