Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jsexplain
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verified Software
jsexplain
Commits
011d799a
Commit
011d799a
authored
9 years ago
by
Alan Schmitt
Browse files
Options
Downloads
Patches
Plain Diff
more comments
parent
d8dc2e98
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
generator/stdlib_ml/stdlib.mli
+8
-3
8 additions, 3 deletions
generator/stdlib_ml/stdlib.mli
with
8 additions
and
3 deletions
generator/stdlib_ml/stdlib.mli
+
8
−
3
View file @
011d799a
...
...
@@ -11,7 +11,10 @@ val ( - ) : int -> int -> int
val
(
*
)
:
int
->
int
->
int
val
(
/
)
:
int
->
int
->
int
(* Alan: I don't think fpclass is needed *)
(* Alan: I don't think fpclass is needed. To compare numbers, we can use
- isNaN https://es5.github.io/#x15.1.2.4
- === with Number.POSITIVE_INFINITY or NUMBER.NEGATIVE_INFINITY
- === to 0 *)
type
fpclass
=
|
FP_normal
...
...
@@ -20,13 +23,15 @@ type fpclass =
|
FP_infinite
|
FP_nan
(* Alan: these can be implemented directly, using NaN, Infinity, -Infinity *)
(* Alan: these can be implemented directly, using Number.NaN,
Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY *)
val
nan
:
float
val
infinity
:
float
val
neg_infinity
:
float
(* Alan: Do we need these ? *)
(* Alan: Do we need these ? If so, they are Number.MAX_VALUE and
Number.MIN_VALUE *)
val
max_float
:
float
val
min_float
:
float
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment