예제 #1
0
        public static Atom Trunc(Atom args, Context context)
        {
            Atom atom = (Atom)args?.value;

            if (atom.type != AtomType.Number)
            {
                throw new ArgumentException("Argument must be number!");
            }

            return(new Atom(AtomType.Number, UNumber.Trunc(atom.value)));
        }