Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
d3d5be5b
Commit
d3d5be5b
authored
May 25, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
instanceof -> type
parent
49016b30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cell/model/FormulaObjects/mathematicFunctions.js
cell/model/FormulaObjects/mathematicFunctions.js
+6
-6
No files found.
cell/model/FormulaObjects/mathematicFunctions.js
View file @
d3d5be5b
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
else
if
(
cElementType
.
array
===
arg0
.
type
)
{
}
else
if
(
cElementType
.
array
===
arg0
.
type
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
if
(
ElementType
.
number
===
elem
.
type
)
{
if
(
c
ElementType
.
number
===
elem
.
type
)
{
var
a
=
Math
.
PI
/
2
-
Math
.
atan
(
elem
.
getValue
());
var
a
=
Math
.
PI
/
2
-
Math
.
atan
(
elem
.
getValue
());
this
.
array
[
r
][
c
]
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
this
.
array
[
r
][
c
]
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
}
else
{
}
else
{
...
@@ -277,7 +277,7 @@
...
@@ -277,7 +277,7 @@
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
else
if
(
cElementType
.
array
===
arg0
.
type
)
{
}
else
if
(
cElementType
.
array
===
arg0
.
type
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
if
(
ElementType
.
number
===
elem
.
type
)
{
if
(
c
ElementType
.
number
===
elem
.
type
)
{
var
a
=
Math
.
atanh
(
1
/
elem
.
getValue
());
var
a
=
Math
.
atanh
(
1
/
elem
.
getValue
());
this
.
array
[
r
][
c
]
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
this
.
array
[
r
][
c
]
=
isNaN
(
a
)
?
new
cError
(
cErrorType
.
not_numeric
)
:
new
cNumber
(
a
);
}
else
{
}
else
{
...
@@ -331,19 +331,19 @@
...
@@ -331,19 +331,19 @@
};
};
var
arg0
=
arg
[
0
];
var
arg0
=
arg
[
0
];
if
(
arg0
instanceof
cArea
||
arg0
instanceof
cArea3D
)
{
if
(
cElementType
.
cellsRange
===
arg0
.
type
||
cElementType
.
cellsRange3D
===
arg0
.
type
)
{
return
this
.
value
=
new
cError
(
cErrorType
.
wrong_value_type
);
return
this
.
value
=
new
cError
(
cErrorType
.
wrong_value_type
);
}
}
arg0
=
arg0
.
tocString
();
arg0
=
arg0
.
tocString
();
if
(
arg0
instanceof
cError
)
{
if
(
cElementType
.
error
===
arg0
.
type
)
{
return
this
.
value
=
arg0
;
return
this
.
value
=
arg0
;
}
}
if
(
arg0
instanceof
cArray
)
{
if
(
cElementType
.
array
===
arg0
.
type
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
arg0
.
foreach
(
function
(
elem
,
r
,
c
)
{
var
a
=
elem
;
var
a
=
elem
;
if
(
a
instanceof
cString
)
{
if
(
cElementType
.
string
===
a
.
type
)
{
var
res
=
to_arabic
(
a
.
getValue
());
var
res
=
to_arabic
(
a
.
getValue
());
this
.
array
[
r
][
c
]
=
isNaN
(
res
)
?
new
cError
(
cErrorType
.
wrong_value_type
)
:
new
cNumber
(
res
);
this
.
array
[
r
][
c
]
=
isNaN
(
res
)
?
new
cError
(
cErrorType
.
wrong_value_type
)
:
new
cNumber
(
res
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment