Everything else but point 4 is beyond me... but if you want to make it a bit 
nicer you can define your own literal:
    
    
    import decimal
    proc `'dec`(s: string): DecimalType = newDecimal(s)
    echo 1e4'dec
    
    
    Run

Reply via email to