<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
For the rounding issue: as a workaround, you can do some ugly things like  toreal(  toint( X * 100)) / 100<br><br>Leyan<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Tue, 24 Jul 2012 13:43:45 +0200<br>> From: a.neumann@carto.net<br>> To: madmanwoo@gmail.com<br>> CC: qgis-developer@lists.osgeo.org<br>> Subject: Re: [Qgis-developer] Expression Builder Questions<br>> <br>>  Hi Nathan,<br>> <br>>  Thanks for the reply.<br>> <br>>  It is not so urgent for me - and I agree that the scale issue would be <br>>  better solved with rule-based labeling.<br>> <br>>  Andreas<br>> <br>>  On Tue, 24 Jul 2012 20:46:54 +1000, Nathan Woodrow wrote:<br>> > Hey Andreas,<br>> ><br>> > On Tue, Jul 24, 2012 at 5:21 PM, Andreas Neumann <br>> > <a.neumann@carto.net> wrote:<br>> >> Hi all - esp. Nathan ;-),<br>> >><br>> >> I have a couple of questions regarding the expression builder:<br>> >><br>> >> 1. Would it be possible to add a $scale support which we could <br>> >> combine with<br>> >> CASE ? This would be quite powerful to add condiditional labeling <br>> >> depending<br>> >> on scale ranges.<br>> ><br>> > Possible yes, however I would like to see proper rule based <br>> > labelling,<br>> > like the rule based rendering, implemented instead as that would<br>> > achieve the same thing but with more power.<br>> ><br>> >><br>> >> 2. Is there a rounding function available other than toint() ? I <br>> >> envision<br>> >> something like PostgreSQL round function:<br>> >> http://www.postgresql.org/docs/9.1/interactive/functions-math.html <br>> >> where one<br>> >> can specify the number of digits one wants to round to.<br>> ><br>> > Yeah this can be done.  I'll add it once I get some free time.<br>> ><br>> >><br>> >> 3. Is there a string formatting function available that allows to <br>> >> format<br>> >> longer nunmbers for better readability? E.g. 1000000.00 would become<br>> >> 1'000'000.00<br>> ><br>> > Sure this is doable as well. I'll have a look into it.<br>> ><br>> > Anyone else is free to have a go if they already know how, I'm pretty<br>> > busy at the moment so no ETA on the above functions.<br>> ><br>> > Regards,<br>> > Nathan<br>> <br>> -- <br>>  --<br>>  Andreas Neumann<br>>  Böschacherstrasse 10A<br>>  8624 Grüt (Gossau ZH)<br>>  Switzerland<br>> _______________________________________________<br>> Qgis-developer mailing list<br>> Qgis-developer@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/qgis-developer<br></div>                                        </div></body>
</html>