human
Number of digits before the decimal point in the division of two numbers | Function to return the number of digits before the decimal in a / b.
Absolute value of a / b.
If result is 0.
Count number of digits in the result.
Return the required count of digits.
Driver code"
Solution in Python:
assistant
#Here is code to number of digits before the decimal point in the division of two numbers and the other steps required.
 def countDigits ( a , b ) :
	count = 0
	p = abs ( a // b )
	if ( p == 0 ) :
		return 1
	while ( p > 0 ) :
		count = count + 1
		p = p // 10
	return count
a = 100
b = 10
print ( countDigits ( a , b ) )