The Hacker Project - a free online game

May 15, 2024, 11:27:04 AM
Welcome, Guest. Please login or register.

Login with username, password and session length











"Trust your technolust!"
Pages: [1]
Print
Author Topic: Rounding down software versions  (Read 4727 times)
m3rl!n
Newbie
*
Posts: 3


View Profile
« on: June 03, 2009, 09:20:02 AM »

The new research formulas sometimes result in up to six decimal places in the researched software version number. Personally, I hate to see these version numbers on my gateway, as I'm sort of perfectionist, but I have not yet found any possibility to transform them into some nicer ones with only two or three decimal digits (correct me if you can somehow, I would love to hear it!).
What about giving us this possibility. For example, if I have a version number like x.135685, but I decide, I dispense with the last three digits (and the invested HPD) to have a nicer version number, then I could have version x.135. Why not, if I feel better?
This would be my proposal, I would love it. What do you all think?
« Last Edit: June 03, 2009, 09:22:06 AM by m3rl!n » Logged
Araeus
Sr. Member
****
Posts: 447



View Profile Email
« Reply #1 on: June 03, 2009, 11:40:14 AM »

That's the thing I miss most about R1, my nice clean version numbers (each hour was .006 version...)
Logged

siremi
Administrator
Hero Member
*****
Posts: 1099



View Profile WWW Email
« Reply #2 on: June 03, 2009, 12:05:28 PM »

Should be possible to round them up to 3 decimals from research...

I'll look into it, thank you.
Logged

Eledran
Jr. Member
**
Posts: 65


View Profile
« Reply #3 on: June 06, 2009, 07:44:15 AM »

I have been looking at the research page and now, since the results of research are given out with 6 decimal digits, I have brainstormed a bit and a light lit in my brain.

What about a little piece of code that acts this way:

- You have a blank box where you can type in the version you want to get as result of the research. If you fill it, the system will take into account the number of tasks you want to start but kill not care about the number of hours you have written in the box designed for that.

It would be like:

//Let's check if there is setted a final version, prior making it decimal

if ($_POST['research_final_version'] && isdouble($_POST['research_final_version']))
{
//if it is defined, lets drop the research time
unset ($_POST['research_hours'];
/*
*
*Now we have to add some calcs here (I do not have any formulas, so.... up to you, emi. Sorry I cannot help around this final stage.
*
*/
};

Problem: You need to define the version number for v1, v2 and other integer ones as 1.0, 2.0, 3.0......
Logged
Triadian
Select Member
Hero Member
*****
Posts: 546


Guilty as charged


View Profile Email
« Reply #4 on: June 06, 2009, 02:26:52 PM »

@ emi - check ya inbox
@ mod - TY
Logged
Exousia
Guest
« Reply #5 on: June 06, 2009, 03:00:30 PM »

@ emi - check ya inbox
@ mod - TY

NP

Took me a minute to figure out to which thread you were referring. I just rolled out of bed, you see.  laugh
Logged
Triadian
Select Member
Hero Member
*****
Posts: 546


Guilty as charged


View Profile Email
« Reply #6 on: June 06, 2009, 03:10:30 PM »

@ emi - check ya inbox
@ mod - TY

NP

Took me a minute to figure out to which thread you were referring. I just rolled out of bed, you see.  laugh

then good morning :P
Logged
Exousia
Guest
« Reply #7 on: June 06, 2009, 03:23:38 PM »

Or afternoon.... I work late, when I work.
Logged
ãłþħά-∆9
Hero Member
*****
Posts: 1235



View Profile
« Reply #8 on: June 28, 2009, 10:13:55 AM »

I agree with this
Although with some fingering you can get a file to be 1.337  7
Logged

Triadian
Select Member
Hero Member
*****
Posts: 546


Guilty as charged


View Profile Email
« Reply #9 on: July 11, 2009, 03:07:52 AM »

PLEASE SEE :- http://www.hacker-project.com/forum/index.php?topic=1671.0
Logged
Pages: [1]
Print
Jump to: