[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/lucifer1004/lpython/main/integration_tests/expr_14.py [Back]  [Original]

from lpython import i32, i64, f32, f64, c32, c64

def test_divide():
    a1: i32; a2: i32; a3: f64;
    b1: i64; b2: i64; b3: f64;
    c1: f32; c2: f32; c3: f32;
    d1: f64; d2: f64; d3: f64;
    e1: c32; e2: c32; e3: c32;
    f1: c64; f2: c64; f3: c64;

    a1 = 1
    a2 = 9
    a3 = a2/a1
    assert abs(a3 - 9.0) 

Web Proxy Viewer  |  New URL  |  Original Page