Page 1 of 1

Convertir numero entero a porcentaje

Posted: Mon Aug 02, 2021 6:32 pm
by jparada
Hola,

Hay alguna función que convierta números enteros (decimal) a porcentaje?, lo realizo así, pero no sé si hay alguna función:

Code: Select all

tempVal := 0.02 * (ventaTotal/objetivoVenta)
tempVal1 := Round(tempVal * 100,1)
Saludos,
Javier

Re: Convertir numero entero a porcentaje

Posted: Thu Aug 05, 2021 6:11 pm
by gisjr134
Ola,


cPercent := Alltrim(Str( tempVal1 , 5,2)) + "%" , 2 Casas decimais.

cPercent := Alltrim(Str( Int(tempVal1) )) + "%" , Inteiro.



Espero ter ajudado.