private static async Task <object> ToSimpleObject(IBifoqlNumber num) { var value = await num.Value; if ((int)value == value) { return((int)value); } else { return(value); } }
public static async Task <IBifoqlObject> Ceil(Location location, QueryContext context, IBifoqlNumber number) { var value = await number.Value; return(new AsyncNumber(Math.Ceiling(value))); }