Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
5be5ce58
Commit
5be5ce58
authored
Dec 12, 2019
by
harrylee
Committed by
vipwzw
Dec 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make linter
parent
39267eec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
exchangedb.go
plugin/dapp/exchange/executor/exchangedb.go
+2
-2
No files found.
plugin/dapp/exchange/executor/exchangedb.go
View file @
5be5ce58
...
...
@@ -591,7 +591,7 @@ func QueryOrderList(localdb dbm.Lister, statedb dbm.KV, addr string, status, cou
return
&
orderList
,
nil
}
//截取小数点后
7
位
//截取小数点后
8
位
func
Truncate
(
price
float64
)
float64
{
return
math
.
Trunc
(
float64
(
1e8
)
*
float64
(
price
)
)
/
float64
(
1e8
)
return
math
.
Trunc
(
float64
(
1e8
)
*
price
)
/
float64
(
1e8
)
}
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