When LC_NUMERIC="C"
let s:goldenview__golden_ratio = 1.618
end with error using Float as a String
When i set LC_NUMERIC="pl_PL.UTF-8"
let s:goldenview__golden_ratio = 1.618
without problem.
After fix:
When LC_NUMERIC="C"
let l:golden_ratio_dot = str2float("1.618") /// 1
let l:golden_ratio_comma = str2float("1,618") /// 1,618
When LC_NUMERIC="pl_PL.UTF-8"
let l:golden_ratio_dot = str2float("1.618") /// 1.618
let l:golden_ratio_comma = str2float("1,618") /// 1
Then
let s:goldenview__golden_ratio = l:golden_ratio_xxxx
and both without errors.
Mac OSX, phpstorm terminal vs system terminal
When LC_NUMERIC="C" let s:goldenview__golden_ratio = 1.618 end with error using Float as a String
When i set LC_NUMERIC="pl_PL.UTF-8" let s:goldenview__golden_ratio = 1.618 without problem.
After fix: When LC_NUMERIC="C" let l:golden_ratio_dot = str2float("1.618") /// 1 let l:golden_ratio_comma = str2float("1,618") /// 1,618 When LC_NUMERIC="pl_PL.UTF-8" let l:golden_ratio_dot = str2float("1.618") /// 1.618 let l:golden_ratio_comma = str2float("1,618") /// 1
Then let s:goldenview__golden_ratio = l:golden_ratio_xxxx and both without errors.