Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Long integer question

Long integer question 3 years 3 months ago #98257

  • AndrejL
  • AndrejL's Avatar
  • Offline
  • Junior Lime
  • Posts: 39
  • Karma: 1

We completed a short survey where one of the questions was to enter a long digit number (19 digits). Some sort of card id number.

Now when I export the data LS shortened my number in to something like '7.0800177000131e+18'.

When I change output format to number LS automaticaly filles zeros at the end of number so it has 19 digits.

For example if I enter 1111111111111111111 I get '1,11111E+18'. And if I transform it to number 1111111111111100000.

Is there any hope that my answers are not lost?

Thank you,

The administrator has disabled public write access.

Long integer question 3 years 2 months ago #98335

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9414
  • Thank you received: 1352
  • Karma: 387
For "card id" number, i allways thinks it's not numeric but text.

Better is to use texte question type and not numeric question type.

(and you can use some regexp on question: [0-9]{19} for example.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Time to create page: 0.341 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form