Skip to main content
Participating Frequently
March 7, 2018
Question

Big numeric variable incorrectly displayed in Text Entry Box

  • March 7, 2018
  • 4 replies
  • 187 views

I have value

173090600271209200100100290021071244

In Text Entry Box i see

        1.730906002712092e+35

Why so?

    This topic has been closed for replies.

    4 replies

    Participating Frequently
    March 27, 2018

    Вот держите. Все работает. All works

    Participating Frequently
    March 15, 2018

    setTimeout(function()

        {   

    document.getElementById("tab1_inputField").value = toFix(173090600271209200100100290021071244);

    function toFix(i){

    var str='';

    do{

       let a = i%10;

       i=Math.trunc(i/10);

       str = a+str;

    }while(i>0)

    return str;

    }

    }, 0100);

    Lilybiri
    Legend
    March 7, 2018

    Mathematically correct, not enough space to display the oirignal entry.

    If you insert that variable associated with the TEB in a text container, you can increase its length and it will display as originally entered.

    Participating Frequently
    March 7, 2018

    How make this operation?

    Lilybiri
    Legend
    March 7, 2018

    To increase the length of the variable that is automatically created with a TEB, you'll have to use JS, will leave you to  TLCMediaDesign.

    If you want to insert the variable in a text container (caption or shape), use the X button in the Character part of the text container, to insert the var, and increase the default length, which is set to 50 in recent versions, to the amount you want.

    TLCMediaDesign
    Inspiring
    March 7, 2018

    Did you try increasing the length of the variable?

    Participating Frequently
    March 7, 2018

    How make it?