Jump to content

Recommended Posts

Morning !

First Post... 

 

I've tried a number of things but not able to sort out the error ..anyone see why I am getting the non well formed numeric error?


<td>{{distance($service->distance)* 0.6 }}Miles</td>

and then in the framework

<td><?php echo e(distance($service->distance)* 0.6); ?>Miles</td>

 

TIA

 

 

If that is the output from the echo then it is obvious you cannot multiply that string by anything. It is not numeric just as the error says. I am again just guessing but I think you want:

distance($service->distance * 0.6)

I don't know how you change the string 'miles' to 'kilometers'.

Edited by gw1500se
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.