Skip to content

Commit

Permalink
Merge pull request #9 from thacuber2a03/main
Browse files Browse the repository at this point in the history
fix min and max, and change mid's description
  • Loading branch information
scrapSavage authored Mar 28, 2024
2 parents 473e01f + 76e661a commit 94d22aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 61 deletions.
23 changes: 1 addition & 22 deletions math/max.json
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
{
"metadata" : {
"page_title" : "max()",
"version" : "0.2",
"authors" : ["kravohi", "thacuber2a03"]
},
"elements" : [
{
"type" : "label",
"text" : "Returns the largest of its arguments."
},
{
"type" : "snippet",
"text" : "max(3,13,24,5,18)\n-- this returns 24"
},
{
"type" : "wiki_ref",
"ref" : "topics/math",
"text" : "Go to Math"
}
]
}
{"elements":[{"type":"label","text":"Takes two arguments and returns the largest."},{"type":"snippet","text":"max(3,13) --> 13\nmax(24,5) --> 24"}],"metadata":{"page_title":"max()","version":"0.2","authors":["kravohi","thacuber2a03"]}}
18 changes: 1 addition & 17 deletions math/mid.json
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{
"metadata" : {
"page_title" : "mid()",
"version" : "0.2",
"authors" : ["thacuber2a03"]
},
"elements" : [
{
"type" : "snippet",
"text" : "mid(min, val, max)"
},
{
"type" : "label",
"text" : "Returns the middle of its arguments."
}
]
}
{"elements":[{"text":"Takes 3 arguments, and returns the argument that\nis numerically contained within the other two.","type":"label"},{"text":"mid(2, 5, 8) --> 5\nmid(8, 2, 5) --> still 5\nmid(2, 1, 9) --> 2","type":"snippet"}],"metadata":{"page_title":"mid()","authors":["thacuber2a03"],"version":"0.4"}}
23 changes: 1 addition & 22 deletions math/min.json
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
{
"metadata" : {
"page_title" : "min()",
"version" : "0.2",
"authors" : ["kravohi", "thacuber2a03"]
},
"elements" : [
{
"type" : "label",
"text" : "Returns the smallest of its arguments."
},
{
"type" : "snippet",
"text" : "max(3,13,24,5,18)\n-- this returns 3"
},
{
"type" : "wiki_ref",
"ref" : "topics/math",
"text" : "Go to Math"
}
]
}
{"elements":[{"text":"Takes two arguments and returns the smallest.","type":"label"},{"text":"min(3,13) --> 3\nmin(24,5) --> 5","type":"snippet"}],"metadata":{"authors":["kravohi","thacuber2a03"],"version":"0.2","page_title":"min()"}}

0 comments on commit 94d22aa

Please sign in to comment.