Fiz um teste e todos os valores estão dando -.
Resolvido. Deu certo assim:
	
	
	
Código PHP:
new precoteste = 25000000;
    new ValoresVenda = (precoteste*90)/100;
    new preco = PegarPorcentagem(90, 100); 
    new teste = precoteste*10-preco;
    new valor = (teste*10)/100;
    printf("$%d",ValoresVenda);
    printf("$%d",ValoresVenda);
    printf("$%d",precoteste*preco/100);
    printf("$%d",valor);
    printf("$%d",floatround((precoteste*90)/10.0));
       printf("$%d",floatround(precoteste*90/100, floatround_ceil));
$-20449673
$-20449673
$-20449673
$-17949682
$-204496736
$-20449672 
Resolvido. Deu certo assim:
Código PHP:
#define PegarPorcentagem(%0,%1) floatmul(floatdiv(%0, 100.0), %1)
printf("$%d",floatround(PegarPorcentagem(90, 25000000))); 
Discord:https://discord.gg/Vg5HMqgdP9
	

 
	   
	

