trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
133 stars 44 forks source link

Rust and Python stdlib has different arithmetics division behavior #607

Open vsbogd opened 6 months ago

vsbogd commented 6 months ago

The following program 607.metta:

!(/ 1 2)

is evaluated differently using Rust and Python stdlib:

$ ~/.cargo/bin/metta 607.metta
[0] ; Rust metta
$ ~/miniconda3/envs/build/bin/metta 607.metta 
[0.5] ; Python metta