mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 18:25:30 +00:00
Implement float <-> string conversion (#907)
This commit is contained in:
parent
7db16faa63
commit
c70abfc6c4
2 changed files with 4 additions and 8 deletions
|
|
@ -148,8 +148,6 @@ Set {
|
|||
"System.seteq",
|
||||
"System.getmouseposx",
|
||||
"System.getmouseposy",
|
||||
"System.floattostring",
|
||||
"System.stringtofloat",
|
||||
"System.integertolongtime",
|
||||
"System.integertotime",
|
||||
"System.datetotime",
|
||||
|
|
|
|||
|
|
@ -382,14 +382,12 @@ class System extends MakiObject {
|
|||
return;
|
||||
}
|
||||
|
||||
floattostring(value: number, ndigits: number) {
|
||||
unimplementedWarning("floattostring");
|
||||
return;
|
||||
floattostring(value: number, ndigits: number): string {
|
||||
return value.toFixed(ndigits).toString();
|
||||
}
|
||||
|
||||
stringtofloat(str: string) {
|
||||
unimplementedWarning("stringtofloat");
|
||||
return;
|
||||
stringtofloat(str: string): number {
|
||||
return parseFloat(str);
|
||||
}
|
||||
|
||||
integertolongtime(value: number) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue