How to round TAV without bankers rounding in .net
The Round function in vb.net is not always like u want it. Not in my case.
I wanted to round every up. For example 1.5 to 2 and 2.5 to 3.
When i used the Round function in vb.net it uses bankers rounding. This means that is rounds to the nearest integer.
So, if there are two nearest integers then it goes to the even one. For example 1.5 rounds to 2 and 0.5 rounds to 0.
This is done because if u round millions of value’s it will give an average.
I’ve been searching for a while to find a good solution for this case. I thought i found one on an other forum wich worked on first sight
but while actually using it i saw that somethimes a 4 rounds to 5.
So i finally decided to write my own function
It is used to round only to 2 decimals but it is easaly adjustable.
Function MyRoundFunction(ByVal dblValue As Double) As Double
Dim strValue As String = dblValue.ToString
Dim strAfterKomma, strBeforeComma, strAll() As String
strAll = strValue.Split(“,”)
strBeforeComma = strAll(0)
strAfterKomma = strAll(1)Dim strResult As String
Dim blnPlus As Boolean = False
Dim i As IntegerDim intLengte_Totaal = strAfterKomma.Length
For i = intLengte_Totaal To 1 Step -1
Dim intValueBetween = CType(Mid(strAfterKomma, i, 1), Integer)
If blnPlus = True Then
intValueBetween += 1
blnPlus = False
End If
If i >= 3 Then
If intValueBetween > 4 Then
If intValueBetween = 10 Then
intValueBetween = 0
End IfblnPlus = True
End If
Else
blnPlus = False
If intValueBetween = 10 Then
intValueBetween = 0
blnPlus = True
End IfEnd If
strResult = CType(intValueBetween, String) & strResult
Next
If blnPlus = True Then
strBeforeComma = CType(CType(strBeforeComma, Integer) + 1, String)
End If
Return CType(strBeforeComma & “,” & Microsoft.VisualBasic.Left(strResult, 2), Double)
End Function
Popularity: 3% [?]
Another tool for beginning your quest to the ultimate keywords
This tool from google gives u tons of relevant keywords.
The only downside about it is that it doesn’t give u an amount of searches that is done on this words on a daily/monthly basis.
https://adwords.google.com/select/KeywordSandbox
Popularity: 2% [?]
overture search suggestion tools for europe
We all know the overture tool where we can find relevant keywords for our sites and much more ![]()
Now this great tool is also available in different languages and for different countries.
Here’s the list:
Austria
http://inventory.at.overture.com/d/searchinventory/suggestion/
Switzerland
http://inventory.ch.overture.com/d/searchinventory/suggestion/
Germany
http://inventory.de.overture.com/d/searchinventory/suggestion/?mkt=de&lang=de_DE
Spain
http://inventory.es.overture.com/d/searchinventory/suggestion/
France
http://inventory.fr.overture.com/d/searchinventory/suggestion/
Italy
http://inventory.it.overture.com/d/searchinventory/suggestion/
Holland
http://inventory.nl.overture.com/d/searchinventory/suggestion/
United Kingdom
http://inventory.uk.overture.com/d/searchinventory/suggestion/
Finland
http://inventory.overture.com/d/searchinventory/suggestion/?mkt=fi
Denmark
http://inventory.overture.com/d/searchinventory/suggestion/?mkt=dk
Norway
http://inventory.overture.com/d/searchinventory/suggestion/?mkt=no
Sweden
http://inventory.overture.com/d/searchinventory/suggestion/?mkt=se
Popularity: 2% [?]
A great tip for increasing your traffic
First of all, make a list of your keywords and launch the query’s below to the search engine’s.
This will give u a GREAT resource of relevant traffic !
# “Add link” +”your keyword(s)”
# “Add a link” +”your keyword(s)”
# “Add site” +”your keyword(s)”
# “Add a site” +”your keyword(s)”
# “Add your site” +”your keywords(s)”
# “Add URL” +”your keyword(s)”
# “Add a URL” +”your keyword(s)”
# “Add an URL” +”your keyword(s)”
# “Add Website” +”your keyword(s)”
# “Add a website” +”your keyword(s)”
# “Add your website” +”your keywords(s)”
# “Submit link” +”your keyword(s)”
# “Submit a link” +”your keyword(s)”
# “Submit site” +”your keyword(s)”
# “Submit a site” +”your keyword(s)”
# “Submit your site” +”your keyword(s)”
# “Submit URL” +”your keyword(s)”
# “Submit a URL” +”your keyword(s)”
# “Submit an URL” +”your keyword(s)”
# “Submit Website” +”your keyword(s)”
# “Submit a website” +”your keyword(s)”
# “Submit your website” +”your keywords(s)”
# “Suggest link” +”your keyword(s)”
# “Suggest a link” +”your keyword(s)”
# “Suggest site” + “your keyword(s)”
# “Suggest a site” + “your keyword(s)”
# “Suggest URL” +”your keyword(s)”
# “Suggest a URL” +”your keyword(s)”
# “Suggest an URL” +”your keyword(s)”
# “Suggest Website” +”your keyword(s)”
# “Suggest a website” +”your keyword(s)”
# “Suggest your website” +”your keywords(s)”
# “favorite links” +”your keyword(s)”
# “favorite sites” +”your keyword(s)”
# “favorite places” +”your keyword(s)”
# “favorite websites” +”your keyword(s)”
# “recommended links” +”your keyword(s)”
# “recommended sites” +”your keyword(s)”
# “recommended places” +”your keyword(s)”
# “recommended websites” +”your keyword(s)”
# “cool links” +”your keyword(s)”
# “cool sites” +”your keyword(s)”
# “cool places” +”your keyword(s)”
# “cool websites” +”your keyword(s)”
# “link exchange” +”your keyword(s)”
# reciprocal +”your keyword(s)”
# directory +”your keyword(s)”
# directories +”your keyword(s)”
# exchange +”your keyword(s)”
# resources +”your keyword(s)”
# links +”your keyword(s)”
Popularity: 2% [?]
Check if its the first hit on a webpage using the session variable
session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
?>
Popularity: 1% [?]


