divide returning locale sensitive values ?

11 views
Skip to first unread message

pauf...@cedreo.com

unread,
Sep 7, 2015, 11:06:38 AM9/7/15
to closure-stylesheets-discuss
It seams the divide function returns locale sensitive values.

For example :
width: divide(BIG_MARGIN, 2);

returns 12,5 when BIG_MARGIN equals 25. I was expecting "12.5" for Chrome, no ?
The locale of my computer is fr_FR and I suspect it is related.

Ian Flanigan

unread,
Sep 7, 2015, 11:07:22 AM9/7/15
to closure-style...@googlegroups.com
That is highly unexpected, but I have a feeling that you're right. Can you file a bug on GitHub?

Thanks,

Ian

--
You received this message because you are subscribed to the Google Groups "closure-stylesheets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-stylesheets...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pierre Aufrere

unread,
Sep 7, 2015, 11:37:44 AM9/7/15
to closure-stylesheets-discuss
Done, right there: #1118


Le lundi 7 septembre 2015 17:07:22 UTC+2, Ian Flanigan a écrit :
That is highly unexpected, but I have a feeling that you're right. Can you file a bug on GitHub?

Thanks,

Ian
On Mon, Sep 7, 2015 at 5:05 PM, <pauf...@cedreo.com> wrote:
It seams the divide function returns locale sensitive values.

For example :
width: divide(BIG_MARGIN, 2);

returns 12,5 when BIG_MARGIN equals 25. I was expecting "12.5" for Chrome, no ?
The locale of my computer is fr_FR and I suspect it is related.

--
You received this message because you are subscribed to the Google Groups "closure-stylesheets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-stylesheets-discuss+unsub...@googlegroups.com.

Ian Flanigan

unread,
Sep 7, 2015, 11:38:52 AM9/7/15
to closure-style...@googlegroups.com
Oops, I think that's in the main closure-compiler project. I think you really want here:


Ian

On Mon, Sep 7, 2015 at 5:27 PM, Pierre Aufrere <pauf...@cedreo.com> wrote:
Done, right there: #1118

Le lundi 7 septembre 2015 17:07:22 UTC+2, Ian Flanigan a écrit :
That is highly unexpected, but I have a feeling that you're right. Can you file a bug on GitHub?

Thanks,

Ian
On Mon, Sep 7, 2015 at 5:05 PM, <pauf...@cedreo.com> wrote:
It seams the divide function returns locale sensitive values.

For example :
width: divide(BIG_MARGIN, 2);

returns 12,5 when BIG_MARGIN equals 25. I was expecting "12.5" for Chrome, no ?
The locale of my computer is fr_FR and I suspect it is related.

--
You received this message because you are subscribed to the Google Groups "closure-stylesheets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-stylesheets...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "closure-stylesheets-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-stylesheets...@googlegroups.com.

Pierre Aufrere

unread,
Sep 8, 2015, 3:38:29 AM9/8/15
to closure-stylesheets-discuss
Yes absolutly. Mistake already pointed out by someone else and fixed. Sorry sorry :s.

You received this message because you are subscribed to a topic in the Google Groups "closure-stylesheets-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/closure-stylesheets-discuss/84gHOCb4Wso/unsubscribe.
To unsubscribe from this group and all its topics, send an email to closure-stylesheets...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Pierre
AUFRERE

Immeuble Le Centaure - Le Panloup
44220 NANTES - COUERON 
Tel : +33 (0)2 40 18 04 77

Cedreo Interactive - Logiciels 3D d'aide à la vente sur mesure www.cedreo-interactive.com

Cedreo Home Planner - Logiciel 3D pour constructeurs de maisons www.home-planner.fr

My Sketcher - Logiciel de plans 3D immobilier & décoration www.mysketcher.com 

Reply all
Reply to author
Forward
0 new messages