SMF Shop
Home
Help
Search
Shop
Login
Register
SMF Shop
»
SMFShop
»
General SMFShop Discussion
»
how to make the credits shown cuts off the figures after the decimal point?
Print
Pages: [
1
]
Author
Topic: how to make the credits shown cuts off the figures after the decimal point? (Read 1842 times)
hunterzj
Newbie
Posts: 0
124 credits
View Inventory
Send Money To hunterzj
Karma: +0/-0
how to make the credits shown cuts off the figures after the decimal point?
«
on:
June 01, 2007, 02:47:44 am »
it is a little bit akward to see things like you have 123.23credits....it is possible to cut it off when showing it to others?
thanks
Logged
Daniel15
The one who started it all
Administrator
Posts: 1,465
673 credits
View Inventory
Send Money To Daniel15
Karma: +73/-12
Re: how to make the credits shown cuts off the figures after the decimal point?
«
Reply #1 on:
June 01, 2007, 06:42:49 pm »
Sure, an easy fix
In Sources/shop/Shop-Subs.php, find:
Code:
[Select]
$money = (float) $money;
Replace with:
Code:
[Select]
// Cast to float
$money = (int) $money;
This should fix it in most (if not all) places it is displayed in
.
Logged
Daniel15
Print
Pages: [
1
]
SMF Shop
»
SMFShop
»
General SMFShop Discussion
»
how to make the credits shown cuts off the figures after the decimal point?