Question: Can any one have matlab code for the fractional number to canonical sign digit conversion?
or binary to canonical sign digit conversion.

I got the matlab code for decimal to csd conversion from matlab file exchange. But i want to convert fractional number to csd.

csd=canonical sign digit

Answer: 
This is an old question, but [as of version 1.56](https://sapui5.hana.ondemand.com/#/topic/53b4b5ec2c83408a8da2cb6b9154c246) there is now native support for passing parameters to handler functions directly in XML Views.

> 
> **New Event Handler Parameter Syntax**
> 
> 
> When event handlers are assigned to control events in XML views, you can now also specify parameters which can be passed to the event handler. The parameters can be static values as well as bindings and even expressions. This feature helps to reduce controller code and avoid unnecessary controller methods, and separates the controller logic from the retrieval of the required input values.
> 
> 
> 

So you can now simply do this:

```
<Button text="click" tap=".callFunction($event, 'mycustomString')" />

```

Note that as soon as you pass at least one parameter, the event itself will no longer be passed automatically, so you need to manually do so by passing `$event`, as I've done above. However, there is also additional syntax to pass event parameters, the source control, and data bindings directly, so you will likely not need the event at all.

The documentation for this feature is available online in the [Demo Kit](https://sapui5.hana.ondemand.com/#/topic/b0fb4de7364f4bcbb053a99aa645affe.html).

Short demo:

```js
sap.ui.define([
  "sap/ui/core/mvc/Controller"
], function(Controller) {
  "use strict";

  return Controller.extend("myController", {
    callFunction: function(sButtonText, sVal) {
      alert("Clicked " + sButtonText + " with value " + sVal);
    }
  });
});

sap.ui.xmlview({
  viewContent: $('#myView').html()
}).placeAt('content');
```

```html
<html>

  <head>
    <meta charset="utf-8">
    <script id='sap-ui-bootstrap' src='https://sapui5.hana.ondemand.com/resources/sap-ui-core.js' data-sap-ui-libs='sap.m'></script>
    <script id="myView" type="sapui5/xmlview">
      <mvc:View controllerName="myController" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m">
        <Button text="Button 1" press=".callFunction(${$source>/text}, 'ABCDEF')" />
        <Button text="Button 2" press=".callFunction(${$source>/text}, 'UVWXYZ')" />
      </mvc:View>
    </script>
  </head>

  <body class='sapUiBody'><div id='content'></div></body>

</html>
```
Why don't you use a function wrapper?

```
<Button text="click" tap="callFunctionWrapper"/>

callFunctionWrapper: function(oEvent) {
      callFunction(oEvent, "mycustomString");
}

```