I am trying to enter value more than integer limit

I am trying to enter value more than integer limit

KeerthikKeerthik Posts: 2Questions: 1Answers: 0

I am trying to enter value more than integer limit. Ex:if i enter 50000000 the value in datatables it is displaying as 5e+00. How should I set data type value to accept double and float data types.

Answers

  • allanallan Posts: 63,834Questions: 1Answers: 10,518 Site admin
    edited December 2016

    accept double and float data types

    There is no such thing in Javascript. The MDN documentation has a great summary of the data types available.

    Basically the only option is to use a string for numbers that cannot be represented by the Number type.

    Allan

  • KeerthikKeerthik Posts: 2Questions: 1Answers: 0

    <td style="text-align: center;">{{$val.Max_txn_value}}</td>

    here i want to display number more than 50000 . how can i do it?

  • allanallan Posts: 63,834Questions: 1Answers: 10,518 Site admin

    Its only when you get into really large numbers that I think you'd have a problem.

    Example with 50001: http://live.datatables.net/bozafuwi/1/edit .

    I don't know what templating you are using, but it sounds like the issue might be there.

    Allan

This discussion has been closed.