Gidsss / UwUIDE

A compiler made to be cute uwu >~<
6 stars 0 forks source link

Int and Float builtin methods #243

Closed am-cid closed 6 months ago

am-cid commented 6 months ago

for both

  1. pow() takes in int/float. always returns self
  2. sqrt() rounds down. always returns self. eg b-chan = 10~ pwint(b.sqrt())~ >.< prints 3
  3. isNegative()
  4. isPositive()

for float

  1. ceil() returns float
  2. floor() returns float
  3. int() returns Int

for int

  1. float() returns float