# Copied out of the book - Uncaught ReferenceError: printArray is not definedShow stack

**URL:** <https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724>\
**Category:** Coding Questions\
**Created:** [July 15, 2019, 4:51pm UTC](https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724 "2019-07-15T16:51:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![otorp2](https://avatars.discourse-cdn.com/v4/letter/o/67e7ee/32.png) [@otorp2](https://discourse.processing.org/u/otorp2)\
**Post date:** [July 15, 2019, 4:51pm UTC](https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724/1 "2019-07-15T16:51:06Z")

</div>

![Capture4](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/5/5fe23e99537fd7f3842ff16d904fef93d5bf8afc.jpeg)

float[] f = { 0.3, 0.4, 0.5 };

void setup(){  
size(100,100);  
background(100);

printArray(f);

}

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 15, 2019, 6:49pm UTC](https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724/2 "2019-07-15T18:49:49Z")

</div>

I tested the code above and it works on Win 10 OS and P3.5.3. What is your OS and your version of Processing?

Kf
