18 Topics

Member Avatar for
Member Avatar for piers

Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing …

Member Avatar for piers
0
3K
Member Avatar for luvseo
0
97
Member Avatar for Fiorentino01^

Hi I am doing a Tizag tutorial.I have created this table products with phpMyAdm in and started to populate the field.When it comes to price if I insert 13.99 the amount is rounded up to 14.I have tried everything changing to decimal, float, double but nothing seems to work,it keeps …

Member Avatar for TonyG_cyprus
0
227
Member Avatar for DaveyMoyes

Hi everyone - I am helping to build a website for a good friend of mine & we are adding into the website an easy to read conversion rate. The only problem we have at the moment is the value is being displayed incorrectly. for instance - If the website …

Member Avatar for DaveyMoyes
0
154
Member Avatar for Xheis

Hi, so I have this assignment to create a scheduling algorithm, I tried looking everywhere for help on how to create one and the closest one was here, where I found a great source code, yet I tried to modify it with my assignment variables and I created some nasty …

Member Avatar for histrungalot
0
3K
Member Avatar for picogenkaku

In simulating round-robin scheduling algorithm, is it possible to have more than one time slice, say two time slices. If so, how will it be simulated? For example, I have Q1 = 10 milliseconds and Q2 = 20 milliseconds. In my opinion, it is like this: a) I'll use the …

0
74
Member Avatar for James19142

in this program i'm writing, i seem to keep getting rounded down values. At first i though it was because i was declaring my return variable as an integer so i made sure i wasnt doing that and changed all number variables in the class to doubles to ensure i …

Member Avatar for Fbody
0
157
Member Avatar for alliswim2010

[COLOR="gray"][/COLOR]1. your-netid_hw5_1.java : Liang page 253, programming exercise 7.6. (Multiplying two matrices) Write a method to multiply two matrices. The header of the method is as follows: public static double[][] multiplyMatrix(double[][] a, double[][] b) To multiply matrix a by matrix b, the number of columns in a must be the …

Member Avatar for ~s.o.s~
0
719
Member Avatar for binoman

I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a …

Member Avatar for binoman
0
1K
Member Avatar for virusisfound

I have done some calculations in two textbox data type is double like 9/8 The answer is in point [B]1.125[/B] how can i make it in complete value. like if it is less than .5 it take 1 as complete number. or if the answer is above .5 then it …

Member Avatar for virusisfound
0
136
Member Avatar for bangor_boy

Hi I have attached a copy of a round robin schedule I have produced, can someone check this is correct. Process Arrival time Service time 1 0 4 2 1 3 3 3 2 4 5 8 5 7 2 If any errors can someone advise where please

Member Avatar for Momerath
0
151
Member Avatar for RoyalElite96

Hello everyone, I want to create a completely round <div> using only HTML / CSS, but without border-radius. I don't want use background images, because I'll have probles resizing them and that's not cool. Is there a better solution? Thanks in advance!

Member Avatar for brynFlew
2
148
Member Avatar for jcb0806

Using VbScript:: I have a list of several different prices and I'm trying to figure out how to round these 5 decimals adding zeros if necessary. For example: I want 2.84 3.1 4.896 to look like 2.84000 3.10000 4.89600 Can somebody please help me? Thanks!

Member Avatar for jcb0806
0
207
Member Avatar for DanHu

I am trying to divide a integer (2's complement) by a power of 2 and then round that number toward zero. I am only allowed to use bitwise operators such as shifts, ~ ^ & | etc. I've came up with 2 expression but they dont seem to work. Can …

Member Avatar for nbaztec
0
200
Member Avatar for NH1

I need to know how to round to the nearest quarter and tenth. Right now i am taking to times finding the difference and then trying to round to the nearest quarter or tenth. Which ever i choose. I have this for code. I made a class to call, In …

Member Avatar for NH1
0
145
Member Avatar for NH1

What if the number i want to round is a decimal.? [code=c] /// <summary> /// Rounds a number to the closest multiple of another number. /// </summary> /// <example>83 rounded to closest 25 would give a value of 75 (83 is closer to 75 than 100)</example> /// <param name="num">The number …

Member Avatar for jbisono
0
169
Member Avatar for sidd.

hi, how to round up a number. e.g. 3.4 to 3 and 3.5 to 4 thanx in advance

Member Avatar for Geekitygeek
0
191
Member Avatar for NargalaX

Hey, I'm making a math bot, and when you type in your equation it converts the numbers to doubles right away. Except, when doing any equation with a decimal, the decimal is ignored. Example 2 + 2 = 4 (No decimals, it works fine.) 2.2 + 2 = 24 (Decimal …

Member Avatar for NargalaX
0
281

The End.