Comments (6)
Agree! I tried on 3 different PCs running MacOS, Windows & Linux.
from contex-samples.
What version of Erlang & Elixir do you have installed?
from contex-samples.
$ asdf current
elixir 1.9 (set by /home/tangui/.tool-versions)
erlang 21.0 (set by /home/tangui/.tool-versions)
nodejs 13.5.0 (set by /home/tangui/.tool-versions)
from contex-samples.
Could you try running something like this in iex:
:erlang.float_to_binary(12.5, [:compact, decimals: 0])
If that fails then I think you have some issue with your installation as that's erlang kernel code - from http://erlang.org/doc/man/erlang.html#float_to_binary-2
from contex-samples.
$ pwd
/tmp/contex-samples
$ iex -S mix phx.server
Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
[info] Running ContexSampleWeb.Endpoint with cowboy 2.7.0 at 0.0.0.0:4000 (http)
[info] Access ContexSampleWeb.Endpoint at http://localhost:4000
Interactive Elixir (1.9.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(2)> :erlang.float_to_binary(12.5, [:compact, decimals: 0])
"13"
from contex-samples.
Cannot reproduce with:
$ asdf current
elixir 1.9.0 (set by /home/home/.tool-versions)
erlang 22.1 (set by /home/home/.tool-versions)
on another computer. May be a local problem, I suggest we close this issue, and reopen it later if needed.
from contex-samples.
Related Issues (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 contex-samples.