reset password
Author Message
Amedrano
Posts: 80
Posted 22:41 Oct 26, 2015 |

how does this "digits_sum(-626)=14." add up to positive 14??? or are we supposed to ignore the "minus" sign and just add the digits?

Last edited by Amedrano at 22:48 Oct 26, 2015.
cysun
Posts: 2935
Posted 22:48 Oct 26, 2015 |

Yes.

equinta4
Posts: 5
Posted 23:16 Oct 26, 2015 |

Here's some documentation that can help you with that: 

http://www.postgresql.org/docs/7.4/static/functions-math.html

Last edited by equinta4 at 23:16 Oct 26, 2015.