eliminar digitos en variable numerica / remove digits in numerical variable - Forum

Forum Navigation
You need to log in to create posts and topics.

eliminar digitos en variable numerica / remove digits in numerical variable

@asleycruz, @gaev, @luishp, @vadim, @rcohen

ESPAÑOL

Hola gente, a ver si pueden darme una manito estoy atascado en algo que debe ser una tontera pero no puedo lograr...

yo ingreso en un campo  un numero x por ejemplo 300000

pero lo que necesito que esa entrada se transforme en 300 es decir que pueda obtener una variable nueva que le saque

los ultimos 3 digitos al importe ingresado originalmente....

alguna idea?

Muchisimas gracias

ENGLISH

Hello people, see if you can give me a little hand I'm stuck on something that must be silly but I can't achieve ...

I enter a number x in a field for example 300000

but what I need that input to become 300 is to say that I can get a new variable that takes out the last 3 digits to the amount originally entered ...

any idea?

BestRegars

 

@joferar333

a new variable that takes out the last 3 digits to the amount originally entered

Let us say that the value is entered in [TextEntry1] ... just use the Math command (https://winhelp.visualneo.com/Control.html#MATH) like so ...

Math "[TextEntry1]/1000" "0" "[desiredValue]"

 

... this will make 30567 into 31 ... if you want it to be 30 ...

Math "trunc([TextEntry1]/1000)" "0" "[desiredValue]"

 

luishp and Vadim have reacted to this post.
luishpVadim

@gaev

Friend thank you very much I cannot believe that I did not realize this option ... I was looking on the other hand to eliminate string ... it really worked at the touch very much grace once more greetings.