I made something in excel that calculates the days left until a given date, and from that how many weeks were left. I had it so that 9 days displayed as 1.2 using this formula: $$\frac{\left(\frac{A}{B}-\Bigl\lfloor{\frac{A}{B}}\Bigr\rfloor\right)\cdot B}{10}+\Bigl\lfloor{\frac{A}{B}}\Bigr\rfloor$$
Where $B$ is the "base" you are counting in and $A$ is the number you are trying to count.
This all works and the question is purely for personal interest only.
So, Is there a way to calculate the Integer portion of a fraction only using the operators +, -, $\div$ and *? Thanks In Advance
You can take advantage of the fact that modulo is the same as the quotient operator for positive values and then sign correct the result. Not the most elegant solution but something like this should work.
$$ \left \lfloor{\frac{A}{B}}\right \rfloor = \left\{\begin{array}{lr} \frac{|A| - |A| \% |B|}{|B|} , & \text{for sgn(A) } = \text{sgn(B)} \\ -\frac{|A| - |A| \% |B|}{|B|} - 1, & \text{for sgn(A) } \neq \text{sgn(B)} \end{array} \right\} $$
where sgn is the signum function.