I'm wondering what are the typographic standards for the placement of commas/dots in the following (and similar) case:\

The first option looks nicer, the second seems to be more logically consistent.
I'm wondering what are the typographic standards for the placement of commas/dots in the following (and similar) case:\

The first option looks nicer, the second seems to be more logically consistent.
As a reference, page 109 of the AMS style guide (http://www.ams.org/arc/styleguide/AMSstyleguide.pdf) suggests that the first is preferred (at least by the AMS).
\begin{equation} d=\begin{cases} (l+b)^2+p^2,&\text{if $0\le p<10000$};\\ (l+b)^2-p^2,&\text{if $-10000<p<0$};\\ (l+b)^2,&\text{if $p\le-10000$}.\end{cases} \end{equation}. See also https://tex.stackexchange.com/q/499/35864 – moewe Dec 21 '19 at 20:31