Can we print rational numbers instead of decimal ratios?
for example,
a=3;
b=4;
if we print a/b, we have to get 3/4 instead of 0.75
harikrishna439 0 Light Poster
Perry31 -6 Light Poster
vinitmittal2008 37 Junior Poster
sharathg.satya -10 Posting Whiz in Training
Adak 419 Nearly a Posting Virtuoso
sharathg.satya -10 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.