Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Round Rating to one decimal?

Quote Reply
Round Rating to one decimal?
Hi,

What would you recommend as a good way to change the rating value <%Rating%> to one decimal place?

As my LinksSQL sites currently in testing all the current values for sites listed there are 0.00 (default value).

Would it simply be a case of changing the Rating Column to one decimal which would require me to update the 200 or so links in LinksSQL?

or would it be possable with a Global, that is a working Global unlike the one below:

sub {
my $rating_value = $rec->{'Rating'};
my $rounded = round($rating_value);
return $rounded;
}

thanks.



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Subject Author Views Date
Thread Round Rating to one decimal? Chas-a 3201 Aug 29, 2003, 10:46 AM
Thread Re: [Chas-a] Round Rating to one decimal?
Andy 3138 Aug 29, 2003, 10:49 AM
Thread Re: [Andy] Round Rating to one decimal?
Mizuno 3126 Aug 29, 2003, 1:31 PM
Thread Re: [Mizuno] Round Rating to one decimal?
Andy 3123 Aug 29, 2003, 1:40 PM
Thread Re: [Andy] Round Rating to one decimal?
Chas-a 3113 Aug 29, 2003, 2:27 PM
Thread Re: [Chas-a] Round Rating to one decimal?
Mizuno 3148 Aug 29, 2003, 3:07 PM
Post Re: [Mizuno] Round Rating to one decimal?
Chas-a 3110 Aug 29, 2003, 3:18 PM
Thread Re: [Mizuno] Round Rating to one decimal?
Andy 3113 Aug 29, 2003, 11:51 PM
Thread Re: [Andy] Round Rating to one decimal?
Mizuno 3118 Aug 30, 2003, 9:54 AM
Post Re: [Mizuno] Round Rating to one decimal?
Andy 3126 Aug 30, 2003, 9:56 AM
Post Re: [Andy] Round Rating to one decimal?
Chas-a 3083 Aug 30, 2003, 10:26 AM