Comments (6)
It works in the Repl application, will add a unit test to see what is wrong.
from jint.
Sorry, I can't repro it, are you using the latest source code available ?
from jint.
I work on the computer with Russian locale.
I add this line in the code:
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
And everything working.
I think we need to replace this line:
n = Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent);
By the following line:
n = Double.Parse(number, NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent, CultureInfo.InvariantCulture);
from jint.
Good catch. Let me know if you want to provide a pull request or if you prefer that I do it.
from jint.
I'm not going to make a pull request.
from jint.
Fixed, thanks
from jint.
Related Issues (20)
- Support explicit interface HOT 1
- Can operator overloading be supported? HOT 2
- 3.0.0-beta-2050 The return is not supported HOT 1
- Arrays have low performance HOT 1
- `ToString` method is now unavailable in some CLR Interop scenarios HOT 3
- Type hints?
- Disallowing only get or set method for property
- Unable to use a Value of JsonNode having Array HOT 2
- error No public methods with the specified arguments were found HOT 9
- Make function call itself crash without any exception HOT 3
- JsTypedArrays values getting passed as empty ExpandoObject in Type Converter. HOT 3
- JS Proxy on Clr Object HOT 1
- Missing properties when accessing the object obtained from the host function returning an interface which inherits from several interfaces HOT 1
- "TargetException: Non-static method requires a target" when destructuring HOT 2
- Integer key based indexer is omitted when string key based indexer exists in interfaces HOT 7
- Fails to parse a date with blank value HOT 2
- .Net7 NativeAOT, used [async/await] return Undefined HOT 4
- JS Proxy on Clr Object - Existing methods on underlying object cannot be called
- Indexer does not work anymore HOT 7
- Support .NET 8 TimeProvider for virtualized time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jint.