Leonardus
Extension LeoScript Operator cvq

STACK

$ S|R\ --\ Q $ $ I_n\ I_d\ --\ Q $

DESCRIPTION

Creates a rational object on the stack from

  • a string representation.
    Accepts two integers separated by a '/'. Accepts a single integer without '/' characters. Ignores whitespaces completely.
  • an I_n numerator and an I_d denominator where I_d may not be 0
  • a R

ORIGIN

Core code registered in leodict.