# Float addition operator in LaTeX?

I need to get the +. sign (see the OCaml float addition operator) in LaTeX. However, when I try:

*$\mid h :: t \-> h +. sumList(t)$ \\**


The output is as follows:

How can I make sure that the period is directly next to the addition sign, and not next to the function call?

• unrelated but use use \mathit{sumList} or better \mathop{\mathit{sumList} the math italic font you get from $sumList$ is designed to make it look not like a word, but a product of variables – David Carlisle Sep 6 '14 at 23:40
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Adam Liter Sep 6 '14 at 23:45
{+} would make a mathord + without the binary operator spacing, so {+}. will be adjacent and \mathbin{{+}.} will give the result the spacing + normally has
• There are two redundant braces. The \mathbin{+.} is sufficient. – wipet Sep 7 '14 at 7:23