Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibIts
Commits
0b0e9fa1
Commit
0b0e9fa1
authored
Sep 29, 2016
by
garciay
Browse files
Add ff_abs() function for float absolute value
parent
5c600839
Changes
1
Hide whitespace changes
Inline
Side-by-side
ttcn/Common/LibItsCommon_Functions.ttcn
View file @
0b0e9fa1
...
...
@@ -55,6 +55,20 @@ module LibItsCommon_Functions {
return
p_number
;
}
/**
* @desc Computes the absolute value of an integer
* @param p_number the number
* @return Absolute value of the number
*/
function
ff_abs
(
in
float
p_number
)
return
float
{
if
(
p_number
<
0.0
)
{
return
0.0
-
p_number
;
}
return
p_number
;
}
/**
* @desc Compares two values and returns the lowest onde
* @param p_a First value
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment