[Gambas-user] Rounding to 2 decimals

Fabien Bodard gambas.fr at ...626...
Fri Jul 27 10:13:58 CEST 2012


2012/7/27 Ricardo Díaz Martín <oceanosoftlapalma at ...626...>

> Yes, gambas convert them but I you can have some problems with "-", "." and
> "," symbols if you are using formatted numbers
> it's true
> 2012/7/27 Fabien Bodard <gambas.fr at ...626...>
>
> > Le 27 juil. 2012 08:33, "Ricardo Díaz Martín" <
> oceanosoftlapalma at ...626...
> > >
> > a écrit :
> > >
> > > 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.
> > Gambas do the convertion automatiquely
> > > 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
> > > >
> > >
> >
> >
> ------------------------------------------------------------------------------
> > > 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
> >
> >
> ------------------------------------------------------------------------------
> > 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
> >
>
> ------------------------------------------------------------------------------
> 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
>



-- 
Fabien Bodard



More information about the User mailing list