Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-tcl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-tcl
Commits
9781fe75
Commit
9781fe75
authored
Jun 15, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed the "float" plugin-filter for ad_page_contract
parent
c71eefeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tcl-documentation-procs.tcl
tcl/tcl-documentation-procs.tcl
+10
-0
No files found.
tcl/tcl-documentation-procs.tcl
View file @
9781fe75
...
...
@@ -1808,6 +1808,12 @@ ad_page_contract_filter float { name value } {
@author Steven Pulito
(
stevenp@seas.upenn.edu
)
@creation-date 22 August 2000
}
{
# Check if the first character is a
"+"
or
"-"
set signum
""
if
{[
regexp
{
^
([
\+\-
])(
.*
)}
$value
match signum rest
]}
{
set value
$rest
}
# remove the first decimal point, the theory being that
# at this point a valid float will pass an integer test
regsub
{
\.
}
$value
""
value_to_be_tested
...
...
@@ -1822,6 +1828,10 @@ ad_page_contract_filter float { name value } {
# but not all of the zeros
set value
"0"
}
# finally add the signum character again
set value
"
$signum$value
"
return 1
}
...
...
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