[esp-r] Re: Automatic rounding of decimal points - locale settings

Marco Manzan manzan at units.it
Tue Nov 10 11:08:50 GMT 2015


hi to all,

the problem of comma separated decimals is shared among all platforms linux too and is related to GTK libraries. If esp-r is compiled against X11 (the mode I prefer)  the numbers are always stored with dot-decimal notations. otherwise, if the gtk version is used it is a dangerous process since, as explained by Jon Hand, the data file get messed up. So if you use comma separated decimals in internationalization features of your desktop, for instance I use Italian, you have to be sure to reset the decimal notation before starting esp-r. In the linux bash shell I set    "export LC_NUMERIC=en_EN". For instance a number of software require the dot-decimal notation  also in windows, an example is GSLedit for complex fenestration proprieties definition.

I hope this helps

Marco Manzan
  
In data martedì 10 novembre 2015 10:15:21, Jon Hand ha scritto:
> 
> If the language is defined with a comma as the decimal point then lots of places where
> data is read from a file is impacted.  ESP-r assumes that a comma is a separator between
> entities.  It can mess up scanning a model very quickly.
> 
> If someone wants to test a newer installer for ESP-r to run on Windows 7 I can send a link
> (back up your older stuff first and ensure that the language decimal point is correctly set).
> 
> Compiling for Native Windows is not as horrible as it used to be (MSYS2 comes with a
> package manager now), but a bit more complex than compiling for Linux or OSX.
> 
> Regards, Jon Hand
> ________________________________________
> From: esp-r-bounces at lists.strath.ac.uk [esp-r-bounces at lists.strath.ac.uk] on behalf of Achim Geissler [achim.geissler at intergga.ch]
> Sent: 09 November 2015 18:15
> To: esp-r at lists.strath.ac.uk Club
> Subject: [esp-r] Re: Automatic rounding of decimal points
> 
> Dear Dimitris,
> 
> firstly, you should definitely use “.” (period) as decimal separator, not “,” (comma).
> 
> Where does this happen (which feature of ESP-r is being used)? There are certain places in the code, where this is done, however, they should be few.
> 
> I’m afraid I couldn’t really help, though, as I cannot compile the windows version (I could maybe point to the place in the code which would need a change, however). My recent experience with students is that either a Cygwin installation or a dual boot Linux installation was basically manageable by the students (one, each, only, though, so no large statistic). Being able to compile the code does make life easier, in my experience.
> 
> Best
> Achim
> 
> 
> On 09 Nov 2015, at 17:24, Dimitris Jim Sfakianakis <dsfakianakis at gmail.com<mailto:dsfakianakis at gmail.com>> wrote:
> 
> Dear list,
> 
> I recently introduced an MSc student to ESP-r. She is using the Windows 12.2 version. Her problem is that whenever she defines an arithmetic with a decimal point, ESP-r automatically disregards the decimal and saves the number as an integer.
> 
> e.g. 2.7 becomes 2.
> 
> She is Greek and she is using a Greek version of windows, and I mention that because the default decimal separator is comma ',' and not period '.'. We tried using both when defining numbers with decimal points but the problem did not go away.
> 
> Any thoughts?
> 
> Thanks!
> 
> Kind regards,
> 
> Dimitris
> 
> t: +1 (949) 202 - 8053
> e: dsfakianakis at gmail.com<mailto:dsfakianakis at gmail.com>
> 
>  [My Linkedin profile] <https://www.linkedin.com/in/dsfakianakis>     [https://www.aeaweb.org/images/t_logo-a.png] <https://twitter.com/EfficientDim>
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk<mailto:esp-r at lists.strath.ac.uk>
> http://lists.strath.ac.uk/mailman/listinfo/esp-r
> 
> achim.geissler at intergga.ch<mailto:achim.geissler at intergga.ch>
> 
> 
> 
> 
> 
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r

-- 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _        
|Marco Manzan               Email: manzan at units.it    |        
|Tel:   (+39) 040 5583506   Fax  : (+39) 040  572033  |        
|Dipartimento di Ingegneria e Architettura            |       
|Universita' degli Studi di Trieste                   |        
|piazzale Europa 1, 34127 TRIESTE                     |        
|_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|




More information about the esp-r mailing list