My Geeks
Home
To my geekers
Thursday, June 20, 2013
php round to .5 or .25
To round to .5:
$value = round($value * 2, 0) / 2;
To round to .25
$value = round($value * 2, 0) / 4;
Take it easy -:)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Popular Posts
Add custom fields to JComments 2.3
If you use JComments 2.2, you can learn how to add custom fields in this article . Below is the modification that article for JComments 2.3...
Joomla 3.x: Create home page with different content for guests & registered users
When you develop a web application by Joomla 3.x, you may have a need to customize a page with different content for guests & registered...
How to Read the Source Code of Chrome and Firefox Extensions
I am writing a Chrome extension (more on that next week !) and so far the experience has been excellent. Google has a decent set of API ...
Integrate Facebook comment plugin into your website and notify via email
Facebook comments plugin allows Facebooker comment on a content on your website. The comments of customers or users (guests) are very impor...
Setup Gitea on Windows
Gitea is an open source project that supports to make a self-hosted Git service. There are many free Git services like Github but when you ...
Facebook Application Privacy Statement
This privacy statement (“Privacy Statement”) applies to the treatment of personally identifiable information submitted by, or otherwise obt...
Solving Error 1001: Unable to get installer types
First let check if your PC has Windows installer service. If having, the reason is your build project on MS Visual Studio has Custom Action ...
MS Office 365 OWA: Insert image to signature or automatic reply email
The editor using for signature or automatic reply email is not support a native function to insert image to the content. So if you need an i...
Install Microsoft Security Essentials In Windows Server 2008 to 2012 R2
Microsoft Security Essentials (MSE) is free tool to help guard your Windows computer against viruses and other malware. In previous years, ...
How do I remove the Powered by Blogger from my Blogger blog?
In order to remove you will need to edit the blogger template and delete the attribution widget in the new Blogger interface. If you are u...
Blog Archive
►
2020
(2)
►
March
(1)
►
February
(1)
►
2019
(2)
►
March
(2)
►
2018
(7)
►
October
(2)
►
September
(1)
►
August
(1)
►
July
(2)
►
January
(1)
►
2017
(18)
►
December
(2)
►
October
(2)
►
September
(2)
►
August
(2)
►
July
(3)
►
June
(2)
►
May
(2)
►
April
(1)
►
March
(1)
►
January
(1)
►
2016
(18)
►
December
(1)
►
November
(2)
►
October
(1)
►
September
(1)
►
August
(3)
►
July
(2)
►
June
(1)
►
May
(1)
►
April
(2)
►
March
(2)
►
February
(2)
►
2015
(9)
►
December
(1)
►
November
(1)
►
August
(1)
►
July
(1)
►
June
(1)
►
March
(2)
►
February
(1)
►
January
(1)
►
2014
(20)
►
December
(1)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(2)
►
July
(2)
►
June
(2)
►
May
(2)
►
April
(3)
►
March
(2)
►
February
(1)
►
January
(2)
▼
2013
(22)
►
December
(2)
►
November
(2)
►
October
(2)
►
September
(2)
►
August
(3)
►
July
(2)
▼
June
(4)
CSS: gradient background color for all browsers
Add custom fields to JComments 2.3
php round to .5 or .25
Windows: Change Remote Desktop Port
►
May
(1)
►
April
(1)
►
March
(1)
►
February
(1)
►
January
(1)
►
2012
(123)
►
December
(3)
►
November
(6)
►
October
(8)
►
September
(9)
►
August
(6)
►
July
(10)
►
June
(10)
►
May
(16)
►
April
(5)
►
March
(6)
►
February
(7)
►
January
(37)
Labels
.net
1406
64 bit
access
addin
addon
amazon
android apps
angular
angular 2
anonymous login
anti-reflector
apache
api
apps
array
asp.net
authentication
auto refresh
auto response
aws
azure
b2b
b2c
backend
background
backup
bcp
biggest table
binary log
black hat
blogger
blue screen
BlueStacks
bluetooth
bootstrap
box-shadow
browser
bug
bulk copy
calendar
canned response
centos
change port
chat bot
chocolatey
choose server
chrome
cloud db
cloud server
CodeIgniter
color
com_search
combine files
comments
component
configuration
ConfuserEx
connect
convert
cordova
cors
crash
CredSSP
crm
crud files
cruise
css
css3
custom field
customer
customer engagement
Dart
dashboards
Data Warehouse
database
db server
debug
decrypt
design
domain config
download manager
ec2
edit
elasticsearch
email
email service
emotion
empty data
encrypt
error code 2006
error solving
ETL
excel
experience
expert
export data
express
extension
facebook
facebook login
failed tracing
file extension
firefox
firewall
form
free emails
free hosting
free ssl
FreeFileSync
frontend
ftp
gadget
Genymotion
git
gitea
GitHub
gmail
godaddy
Google Apps Script
google docs
google drive
google gadget
google script
google sites
googlebot
gradient
guide
hangout
Heartbleed Bug
homepage
hotel
htaccess
html
html5
httpd
https
icmp
ie
iis7
img
import data
important
important features
input
ionic
ionic 2
ionic 3
ionic4
ipban
Javascript
jcomments
joomla
jquery
jquery week calendar
js
JWT
kibana
lamp
landing page
last queries
layout
letsencrypt
loadmodule
loadposition
log shipping
login
logs
logstash
loyalty program
lucene
luis
maintenance
marketing
max_allowed_packet
maxLogFileSizeKB
menu
merge cells
meta tag
migrate
mirroring
mobile
module
ms sql
ms word
mse
msi
multiple accounts
mysql
navigation
nginx
nodejs
NoSQL
notify
npm
office 365
offline
offline web app
openssh
optimize
oracle
outlook
overwrite
own domain
page layout
pagespeed
parameter
parent path
path
pc
petwrap
petya
php
phpmyadmin
pie chart
ping
plugin
powershell
pricing comparison
Privacy Policy
query
random number
ransomware
reflector
remote
remote desktop
replication
responsive design
RESTFull
rich snippets
robot
root
round
rtf
sample
schedule
schtasks
scratchcard
script
security
seleninum
seo
session
sftp
shared folder
short url
smarty
snapshot
soapclient
social
solr
space
spam
special characters
split files
sql server 2014
SSIS
ssl
ssl certificate
standby
static homepage
storage
swap 2 columns
sysdba
table size
tempdb
template
test
test automation
tip
toolbar
tourism
transfer domain
travel
twitter
ul li
url
user profile
utf8
v$sql
validator
vba
version
VirtualBox
visual studio code
vtiger
wamp
web app
web store
WebGL
webmaster
webservice
widget
windows
windows 2003
windows 2008
windows 7
windows server
wordpress
xpstar90
Powered by
Blogger
.
No comments:
Post a Comment