[Gambas-user] Rounding to 2 decimals

Ricardo Díaz Martín oceanosoftlapalma at ...626...
Fri Jul 27 08:32:41 CEST 2012


Hi rocko

As you can read this http://gambasdoc.org/help/lang/round you have to
put perAmnt
= Round((prmAmnt / totAmnt * 100),  -2). In addition you'd have to convert
the Text to float on before to do the division to avoid errors or using
ValueBox.

Regards,
Ricardo Díaz

2012/7/27 LeszekK <lknetpl at ...626...>

> ValueBox1.Value = perAmnt
>
> 2012/7/27 LeszekK <lknetpl at ...626...>:
> > ValueBox1.Value = perAmnt & "%"
>
>
>
> --
> Serdecznie pozdrawiam,
>
> Leszek Kubiszewski
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list