The said component is sn74lvc1g08 from TI, datasheet.
I was planning on connecting 3 1.5 volt AA batteries (in other words, 4.7 or 4.8 volts max in total) to one of the input pins (either A or B) and I'm quite sure although not 100% sure that a resistor is necessary, but I don't really know how to calculate the value of the resistor.
Please give a rather detailed procedure regarding the method of calculation. Thanks in advance.
I'm working on some safe-critical project and I'm ticking in "extremely meticulous" mode so please bear with me.