Opened 13 years ago

Last modified 13 years ago

## #397 new discussion

# Arithmetic for DataWeight

Reported by: | Peter | Owned by: | Jari Häkkinen |
---|---|---|---|

Priority: | major | Milestone: | yat 0.x+ |

Component: | utility | Version: | trunk |

Keywords: | Cc: |

### Description (last modified by )

There is no arithmetic for DataWeight.

Is that a feature, we would like to have? If so, which operations and how to define those operations?

### Change History (3)

### comment:1 Changed 13 years ago by

Description: | modified (diff) |
---|

### comment:2 follow-up: 3 Changed 13 years ago by

### comment:3 Changed 13 years ago by

Replying to peter:

Obviously these must be defines so a double is equivalent with a DataWeight? for which

`w=1.0`

.

or we could allow implicit construction of a DataWeight from a double.

**Note:**See TracTickets for help on using tickets.

If we add arithmetic operations we should also add so one can mix DataWeight? and double. For instance:

Obviously these must be defines so a double is equivalent with a DataWeight? for which

`w=1.0`

.