If the half life is specified then the decay constant will be (mathematically) irrational because of the ln(2). However, there is no compulsion to specify the half-life; one may specify the decay constant instead.
For real-world situations, both the half-life and the decay constant will only be approximate anyway (because based on experimental measurement with attendant inaccuracies).
I guess the examples provided by the questioner here are artificial examples dreamt up by a teacher.