mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
adding math class to pika std lib
This commit is contained in:
parent
693eee50a1
commit
cd7e342c69
3
port/linux/.vscode/settings.json
vendored
3
port/linux/.vscode/settings.json
vendored
@ -3,5 +3,6 @@
|
||||
"pikaobj.h": "c",
|
||||
"stdbool.h": "c",
|
||||
"datamemory.h": "c"
|
||||
}
|
||||
},
|
||||
"python.formatting.provider": "yapf"
|
||||
}
|
@ -1,6 +1,38 @@
|
||||
from PikaObj import *
|
||||
|
||||
|
||||
class Math(TinyObj):
|
||||
def plusInt(num1: int, num2: int) -> int:
|
||||
pass
|
||||
|
||||
def plusFloat(num1: float, num2: float) -> float:
|
||||
pass
|
||||
|
||||
def minusInt(num1: int, num2: int) -> int:
|
||||
pass
|
||||
|
||||
def minusFloat(num1: float, num2: float) -> float:
|
||||
pass
|
||||
|
||||
def equalInt(num1: int, num2: int) -> int:
|
||||
pass
|
||||
|
||||
def equalFloat(num1: float, num2: float) -> int:
|
||||
pass
|
||||
|
||||
def graterThanInt(num1: int, num2: int) -> int:
|
||||
pass
|
||||
|
||||
def lessThanInt(num1: int, num2: int) -> int:
|
||||
pass
|
||||
|
||||
def graterThanFloat(num1: float, num2: float) -> int:
|
||||
pass
|
||||
|
||||
def lessThanFloat(num1: float, num2: float) -> int:
|
||||
pass
|
||||
|
||||
|
||||
class MemChecker(BaseObj):
|
||||
def max():
|
||||
pass
|
||||
@ -13,7 +45,6 @@ class MemChecker(BaseObj):
|
||||
|
||||
|
||||
class SysObj(BaseObj):
|
||||
|
||||
def type(argPath: str):
|
||||
pass
|
||||
|
||||
|
@ -2,6 +2,8 @@ import PikaStdLib
|
||||
import PikaStdDevice
|
||||
from PikaObj import *
|
||||
|
||||
meth = PikaStdLib.Math()
|
||||
|
||||
print('hello world')
|
||||
mem = PikaStdLib.MemChecker()
|
||||
print('mem.max :')
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user