# How to get the limit of a rule [duplicate]

When using the FindRoot function on a certain function, the returned object is a rule. Specifically, the outcome is {t -> 5.19188}. My question is how I could retrieve the 5.19188 value from this answer, or if this is even possible.

• try t /. sol where sol ={t -> 5.19188}. Or, just sol[[1, -1]] . – kglr Sep 29 '17 at 21:40
• Or (for completeness) a kludgy approach: {t -> 5.19188}[[1, 2]] – David G. Stork Sep 29 '17 at 21:42
• Specifically, see mathematica.stackexchange.com/a/18706/12 – Szabolcs Sep 29 '17 at 22:03

This is done with the ReplaceAll command's infix notation syntax /.
sol={t->5.19188}